SimpleFormalParameter class
A simple formal parameter.
simpleFormalParameter ::=
('final' TypeAnnotation
| 'var' | TypeAnnotation
)? SimpleIdentifier
- Implemented types
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isNamed → bool?
-
Return
true
if this parameter is a named parameter.no setteroverride - isOptional → bool?
-
Return
true
if this parameter is an optional parameter.no setteroverride - isOptionalNamed → bool?
-
Return
true
if this parameter is both an optional and named parameter.no setteroverride - isOptionalPositional → bool?
-
Return
true
if this parameter is both an optional and positional parameter.no setteroverride - isPositional → bool?
-
Return
true
if this parameter is a positional parameter.no setteroverride - name → String?
-
Return the name of the parameter being declared.
no setteroverride
- paramType ↔ TypeName?
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromAst(
Map? ast) → SimpleFormalParameter?