Constructor class Null safety
- Implemented types
- Annotations
Constructors
- Constructor([void updates(ConstructorBuilder)])
-
factory
Properties
-
annotations
→ BuiltList<
Expression> -
Annotations as metadata on the node.
read-only
- body → Code?
-
Body of the method.
read-only
- constant → bool
-
Whether the constructor should be prefixed with
const
.read-only -
docs
→ BuiltList<
String> -
Dart docs.
read-only
- external → bool
-
Whether the constructor should be prefixed with
external
.read-only - factory → bool
-
Whether this constructor should be prefixed with
factory
.read-only - hashCode → int
-
The hash code for this object.
read-onlyinherited
-
initializers
→ BuiltList<
Code> -
Constructor initializer statements.
read-only
- lambda → bool?
-
Whether this constructor is a simple lambda expression.
read-only
- name → String?
-
Name of the constructor - optional.
read-only
-
optionalParameters
→ BuiltList<
Parameter> -
Optional parameters.
read-only
- redirect → Reference?
-
If non-null, redirect to this constructor.
read-only
-
requiredParameters
→ BuiltList<
Parameter> -
Required parameters.
read-only
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
rebuild(
dynamic updates(ConstructorBuilder)) → Constructor -
Rebuilds the instance.
inherited
-
toBuilder(
) → ConstructorBuilder -
Converts the instance to a builder
B
.inherited -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited