ExecutableDeclaration class sealed
Represents an executable declaration
- Implemented types
- Available extensions
- Annotations
-
- @freezed
Constructors
-
ExecutableDeclaration.new({required String returnTypeName, required String? returnTypeFullLibraryName, required String name, required bool isDeprecated, required bool isExperimental, required List<
ExecutableParameterDeclaration> parameters, required List<String> typeParameterNames, required ExecutableType type, required bool isStatic, Set<String> ? entryPoints, required String relativePath}) -
constfactory
Properties
-
copyWith
→ $ExecutableDeclarationCopyWith<
ExecutableDeclaration> -
Create a copy of ExecutableDeclaration
with the given fields replaced by the non-null parameter values.
no setterinherited
-
entryPoints
→ Set<
String> ? -
entry points for this executable
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDeprecated → bool
-
whether the executable is deprecated
no setterinherited
- isExperimental → bool
-
whether the executable is experimental
no setterinherited
- isStatic → bool
-
whether the executable is a static method
no setterinherited
- name → String
-
name of the executable
no setterinherited
-
parameters
→ List<
ExecutableParameterDeclaration> -
list of the executables parameters (
ExecutableOParameterDeclaration
s)no setterinherited - relativePath → String
-
the relative path of the library
no setterinherited
- returnTypeFullLibraryName → String?
-
no setterinherited
- returnTypeName → String
-
name of the return type
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- signature → String
-
signature of the executable declaration.
no setter
- type → ExecutableType
-
type of the executable
no setterinherited
-
typeParameterNames
→ List<
String> -
type parameter names of this executable
no setterinherited
Methods
-
map<
TResult extends Object?> (TResult $default(_ExecutableDeclaration value)) → TResult -
Available on ExecutableDeclaration, provided by the ExecutableDeclarationPatterns extension
Aswitch
-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_ExecutableDeclaration value)?) → TResult? -
Available on ExecutableDeclaration, provided by the ExecutableDeclarationPatterns extension
A variant ofmap
that fallback to returningnull
. -
maybeMap<
TResult extends Object?> (TResult $default(_ExecutableDeclaration value)?, {required TResult orElse()}) → TResult -
Available on ExecutableDeclaration, provided by the ExecutableDeclarationPatterns extension
A variant ofmap
that fallback to returningorElse
. -
maybeWhen<
TResult extends Object?> (TResult $default(String returnTypeName, String? returnTypeFullLibraryName, String name, bool isDeprecated, bool isExperimental, List< ExecutableParameterDeclaration> parameters, List<String> typeParameterNames, ExecutableType type, bool isStatic, Set<String> ? entryPoints, String relativePath)?, {required TResult orElse()}) → TResult -
Available on ExecutableDeclaration, provided by the ExecutableDeclarationPatterns 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 returnTypeName, String? returnTypeFullLibraryName, String name, bool isDeprecated, bool isExperimental, List< ExecutableParameterDeclaration> parameters, List<String> typeParameterNames, ExecutableType type, bool isStatic, Set<String> ? entryPoints, String relativePath)) → TResult -
Available on ExecutableDeclaration, provided by the ExecutableDeclarationPatterns extension
Aswitch
-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(String returnTypeName, String? returnTypeFullLibraryName, String name, bool isDeprecated, bool isExperimental, List< ExecutableParameterDeclaration> parameters, List<String> typeParameterNames, ExecutableType type, bool isStatic, Set<String> ? entryPoints, String relativePath)?) → TResult? -
Available on ExecutableDeclaration, provided by the ExecutableDeclarationPatterns extension
A variant ofwhen
that fallback to returningnull
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited