ExecutableParameterDeclaration class sealed

Represents an executable parameter declaration

Implemented types
Available extensions
Annotations
  • @freezed

Constructors

ExecutableParameterDeclaration({required bool isRequired, required bool isNamed, required String name, required bool isDeprecated, required bool isExperimental, required String typeName, required String? typeFullLibraryName, required String relativePath})
const
factory

Properties

copyWith → $ExecutableParameterDeclarationCopyWith<ExecutableParameterDeclaration>
Create a copy of ExecutableParameterDeclaration with the given fields replaced by the non-null parameter values.
no setterinherited
entryPoints → Set<String>?
ExecutableParameterDeclarations can't have entry points
no setteroverride
hashCode → int
The hash code for this object.
no setterinherited
isDeprecated → bool
whether the parameter is deprecated
no setterinherited
isExperimental → bool
whether the parameter is experimental
no setterinherited
isNamed → bool
whether the parameter is named
no setterinherited
isRequired → bool
whether the parameter is required
no setterinherited
name → String
the name of the parameter
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
typeFullLibraryName → String?
the type library path
no setterinherited
typeName → String
type name of this parameter
no setterinherited

Methods

map<TResult extends Object?>(TResult $default(_ExecutableParameterDeclaration value)) → TResult

Available on ExecutableParameterDeclaration, provided by the ExecutableParameterDeclarationPatterns extension

A switch-like method, using callbacks.
mapOrNull<TResult extends Object?>(TResult? $default(_ExecutableParameterDeclaration value)?) → TResult?

Available on ExecutableParameterDeclaration, provided by the ExecutableParameterDeclarationPatterns extension

A variant of map that fallback to returning null.
maybeMap<TResult extends Object?>(TResult $default(_ExecutableParameterDeclaration value)?, {required TResult orElse()}) → TResult

Available on ExecutableParameterDeclaration, provided by the ExecutableParameterDeclarationPatterns extension

A variant of map that fallback to returning orElse.
maybeWhen<TResult extends Object?>(TResult $default(bool isRequired, bool isNamed, String name, bool isDeprecated, bool isExperimental, String typeName, String? typeFullLibraryName, String relativePath)?, {required TResult orElse()}) → TResult

Available on ExecutableParameterDeclaration, provided by the ExecutableParameterDeclarationPatterns extension

A variant of when that fallback to an orElse 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(bool isRequired, bool isNamed, String name, bool isDeprecated, bool isExperimental, String typeName, String? typeFullLibraryName, String relativePath)) → TResult

Available on ExecutableParameterDeclaration, provided by the ExecutableParameterDeclarationPatterns extension

A switch-like method, using callbacks.
whenOrNull<TResult extends Object?>(TResult? $default(bool isRequired, bool isNamed, String name, bool isDeprecated, bool isExperimental, String typeName, String? typeFullLibraryName, String relativePath)?) → TResult?

Available on ExecutableParameterDeclaration, provided by the ExecutableParameterDeclarationPatterns extension

A variant of when that fallback to returning null

Operators

operator ==(Object other) → bool
The equality operator.
inherited