Get class

Annotation to indicate that a parameter or field should be automatically converted to the specified type.

Example:

const MyModel({
  @Get(int) required String age,
});

Here, age is stored as a String, but getters can automatically convert it to int.

Constructors

Get(Type type)
Creates a Get annotation to specify the target type.
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
type Type
The target type for automatic conversion
final

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