ConstructorParameter class
Represents a ConstructorParameter definition. A ConstructorParameter definition is comparable to a Parameter definition, but it can also have a default value and may refer to a Field
Constructors
- ConstructorParameter.named(String name, {bool this$ = false, Type? type, dynamic defaultValue, bool required = false})
- ConstructorParameter.optional(String name, {bool this$ = false, Type? type, Expression? defaultValue})
- ConstructorParameter.required(String name, {bool this$ = false, Type? type})
Properties
- category → ParameterCategory
-
finalinherited
- defaultValue → Expression?
-
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → IdentifierStartingWithLowerCase
-
finalinherited
- required → bool
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- this$ → bool
-
finalinherited
- type → Type?
-
finalinherited
Methods
-
codeNodes(
Context context) → List< CodeNode> -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
toUnFormattedString(
Context context) → String -
Recursive call to get the unformatted code from all nodes
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited