Constructor class

Configuration for defining a constructor.

Inheritance

Constructors

Constructor({bool isConst = false, bool isFactory = false, String? name, Iterable<Parameter> parameters = const [], Element? body, Iterable<Docs> docs = const [], Iterable<Element> initializers = const []})
Configuration for defining a constructor.
const

Properties

body Element?
The body of this constructor.
final
docs Iterable<Docs>
The documentation for this constructor.
final
hashCode int
The hash code for this object.
no setterinherited
initializers Iterable<Element>
The initialisers of this constructor.
final
isConst bool
Whether this constructor is a constant constructor.
final
isFactory bool
Whether this constructor is a factory constructor.
final
name String?
The name of the constructor.
final
parameters Iterable<Parameter>
The parameters of this constructor.
final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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