Parameter class

A Parameter is a representation of a function parameter.

See Instance.

Constructors

Parameter({InstanceRef? parameterType, bool? fixed, String? name, bool? required})

Properties

fixed bool?
Represents whether or not this parameter is fixed or optional.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
name String?
The name of a named optional parameter.
getter/setter pair
parameterType InstanceRef?
The type of the parameter.
getter/setter pair
required bool?
Whether or not this named optional parameter is marked as required.
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
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

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

Static Methods

parse(Map<String, dynamic>? json) Parameter?