Parameter class Null safety

A Parameter is a representation of a function parameter.

See Instance.

Constructors

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

Properties

fixed bool?
Represents whether or not this parameter is fixed or optional.
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
name String?
The name of a named optional parameter.
@optional, read / write
parameterType InstanceRef?
The type of the parameter.
read / write
required bool?
Whether or not this named optional parameter is marked as required.
@optional, read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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?