Parameter class abstract

Constructors

Parameter([void updates(ParameterBuilder)])
factory

Properties

annotations → BuiltList<Expression>
Annotations as metadata on the node.
no setter
covariant bool
Whether this parameter should be annotated with the covariant keyword.
no setter
defaultTo Code?
If not null, a default assignment if the parameter is optional.
no setter
docs → BuiltList<String>
Dart docs.
no setter
hashCode int
The hash code for this object.
no setterinherited
name String
Name of the parameter.
no setter
named bool
Whether this parameter should be named, if optional.
no setter
required bool
Whether this parameter should be annotated with the required keyword.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
toSuper bool
Whether this parameter should be passed to super
constructor (i.e. super.).
no setter
toThis bool
Whether this parameter should be field formal (i.e. this.).
no setter
type Reference?
Type of the parameter;
no setter
types → BuiltList<Reference>
Generic type parameters.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
rebuild(dynamic updates(ParameterBuilder)) Parameter
Rebuilds the instance.
inherited
toBuilder() ParameterBuilder
Converts the instance to a builder B.
inherited
toString() String
A string representation of this object.
inherited

Operators

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