ExtensionType class abstract
- Implemented types
- Annotations
-
- @immutable
Constructors
- ExtensionType([void updates(ExtensionTypeBuilder)?])
-
factory
Properties
-
annotations
→ BuiltList<
Expression> -
Annotations as metadata on the node.
no setter
- constant → bool
-
Whether this extension type is declared as
const
.no setter -
constructors
→ BuiltList<
Constructor> -
no setter
-
docs
→ BuiltList<
String> -
Dart docs.
no setter
-
fields
→ BuiltList<
Field> -
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
implements
→ BuiltList<
Reference> -
no setter
-
methods
→ BuiltList<
Method> -
no setter
- name → String
-
no setter
- primaryConstructorName → String
-
Name of the extension type's primary constructor. An empty string
will make it unnamed.
no setter
- representationDeclaration → RepresentationDeclaration
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
types
→ BuiltList<
Reference> -
Generic type parameters.
no setter
Methods
-
accept<
R> (SpecVisitor< R> visitor, [R? context]) → R -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
rebuild(
dynamic updates(ExtensionTypeBuilder)) → ExtensionType -
Rebuilds the instance.
inherited
-
toBuilder(
) → ExtensionTypeBuilder -
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