InterfaceDeclaration class sealed
Represents a found interface declaration
- Implemented types
- Available extensions
- Annotations
-
- @freezed
Constructors
-
InterfaceDeclaration.new({required String name, required bool isDeprecated, required bool isExperimental, required bool isSealed, required bool isAbstract, required Set<
TypeUsage> typeUsages, required List<String> typeParameterNames, required Set<String> superTypeNames, required List<ExecutableDeclaration> executableDeclarations, required List<FieldDeclaration> fieldDeclarations, Set<String> ? entryPoints, required String relativePath}) -
constfactory
Properties
-
copyWith
→ $InterfaceDeclarationCopyWith<
InterfaceDeclaration> -
Create a copy of InterfaceDeclaration
with the given fields replaced by the non-null parameter values.
no setterinherited
-
entryPoints
→ Set<
String> ? -
entry points this interface is reachable through
no setterinherited
-
executableDeclarations
→ List<
ExecutableDeclaration> -
executables that belong to this interface
no setterinherited
-
fieldDeclarations
→ List<
FieldDeclaration> -
fields that belong to this interface
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isAbstract → bool
-
determines if this declaration is abstract
no setterinherited
- isDeprecated → bool
-
whether this interface is deprecated
no setterinherited
- isExperimental → bool
-
whether this interface is experimental
no setterinherited
- isRequired → bool
-
determines if this interface is required (meaning: can be used in a type hierarchy by the consumer)
no setter
- isSealed → bool
-
determines if this declaration is sealed
no setterinherited
- name → String
-
name of this interface
no setterinherited
- relativePath → String
-
the relative path of the library
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- signature → String
-
the signature of this interface condensed to one String
contains Type arguments as well as base types or implemented interfaces
no setter
-
superTypeNames
→ Set<
String> -
set of super type names
no setterinherited
-
typeParameterNames
→ List<
String> -
list of type parameter names
no setterinherited
-
typeUsages
→ Set<
TypeUsage> -
usages of this interface
no setterinherited
Methods
-
map<
TResult extends Object?> (TResult $default(_InterfaceDeclaration value)) → TResult -
Available on InterfaceDeclaration, provided by the InterfaceDeclarationPatterns extension
Aswitch
-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_InterfaceDeclaration value)?) → TResult? -
Available on InterfaceDeclaration, provided by the InterfaceDeclarationPatterns extension
A variant ofmap
that fallback to returningnull
. -
maybeMap<
TResult extends Object?> (TResult $default(_InterfaceDeclaration value)?, {required TResult orElse()}) → TResult -
Available on InterfaceDeclaration, provided by the InterfaceDeclarationPatterns extension
A variant ofmap
that fallback to returningorElse
. -
maybeWhen<
TResult extends Object?> (TResult $default(String name, bool isDeprecated, bool isExperimental, bool isSealed, bool isAbstract, Set< TypeUsage> typeUsages, List<String> typeParameterNames, Set<String> superTypeNames, List<ExecutableDeclaration> executableDeclarations, List<FieldDeclaration> fieldDeclarations, Set<String> ? entryPoints, String relativePath)?, {required TResult orElse()}) → TResult -
Available on InterfaceDeclaration, provided by the InterfaceDeclarationPatterns extension
A variant ofwhen
that fallback to anorElse
callback. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
when<
TResult extends Object?> (TResult $default(String name, bool isDeprecated, bool isExperimental, bool isSealed, bool isAbstract, Set< TypeUsage> typeUsages, List<String> typeParameterNames, Set<String> superTypeNames, List<ExecutableDeclaration> executableDeclarations, List<FieldDeclaration> fieldDeclarations, Set<String> ? entryPoints, String relativePath)) → TResult -
Available on InterfaceDeclaration, provided by the InterfaceDeclarationPatterns extension
Aswitch
-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(String name, bool isDeprecated, bool isExperimental, bool isSealed, bool isAbstract, Set< TypeUsage> typeUsages, List<String> typeParameterNames, Set<String> superTypeNames, List<ExecutableDeclaration> executableDeclarations, List<FieldDeclaration> fieldDeclarations, Set<String> ? entryPoints, String relativePath)?) → TResult? -
Available on InterfaceDeclaration, provided by the InterfaceDeclarationPatterns extension
A variant ofwhen
that fallback to returningnull
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited