Constructable class
An experimental macro which generates a const constructor.
@Constructable()
class Person {
final String name;
}
void main() {
// Generated const constructor with required, named parameters.
const dash = Person(name: 'Dash');
}
Constructors
- Constructable.new()
-
An experimental macro which generates a const constructor.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
buildDeclarationsForClass(
ClassDeclaration clazz, MemberDeclarationBuilder builder) → Future< void> -
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