Parameter class

Represents the definition of a Parameter in a a DartFunction or Method. A Parameter definition can be:

  • required positional
  • or optional
  • or named See: https://dart.dev/guides/language/language-tour#parameters
Inheritance
Implementers

Constructors

Parameter.named(String name, {Type? type, dynamic defaultValue, bool required = false})
Parameter.optional(String name, {Type? type, Expression? defaultValue})
Parameter.required(String name, {Type? type})

Properties

category ParameterCategory
final
defaultValue Expression?
final
hashCode int
The hash code for this object.
no setterinherited
name IdentifierStartingWithLowerCase
final
required bool
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
this$ bool
final
type Type?
final

Methods

codeNodes(Context context) List<CodeNode>
override
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