Parameter class
Represents a Method's parameter that has a type and a name.
Constructors
Properties
- defaultValue → String?
-
Stringified version of the default value of types that have default values.
finalinherited
-
documentationComments
→ List<
String> -
List of documentation comments, separated by line.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isNamed → bool
-
Whether this parameter is a named parameter.
final
- isOptional → bool
-
Whether this parameter is an optional parameter.
final
- isPositional → bool
-
Whether this parameter is a positional parameter.
final
- isRequired → bool
-
Whether this parameter is a required parameter.
final
- name → String
-
The name of the entity.
finalinherited
- offset → int?
-
The offset in the source file where the NamedType appears.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → TypeDeclaration
-
The type.
finalinherited
Methods
-
copyWithType(
TypeDeclaration type) → Parameter -
Returns a copy of Parameter instance with new attached TypeDeclaration.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited