Constructor class
Represents a Class Constructor
See https://dart.dev/guides/language/language-tour#constructors
Constructors
-
Constructor(Type type, {List<
DocComment> docComments = const [], List<Annotation> annotations = const [], bool external = false, bool constant = false, bool factory = false, String? name, ConstructorParameters? parameters, Initializers? initializers, Block? body})
Properties
-
annotations
→ List<
Annotation> -
final
- body → Block?
-
final
- constant → bool
-
Whether the constructor should be prefixed with
const
.final -
docComments
→ List<
DocComment> -
final
- external → bool
-
Whether the constructor should be prefixed with
external
.final - factory → bool
-
Whether this constructor should be prefixed with
factory
.final - hashCode → int
-
The hash code for this object.
no setterinherited
- initializers → Initializers?
-
final
- name → IdentifierStartingWithLowerCase?
-
final
- parameters → ConstructorParameters?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- 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