MappableField class Models Records Configuration Mapping Hooks

Used to annotate a parameter or field to overwrite the mapped key.

Constructors

MappableField({String? key, MappingHook? hook})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
hook MappingHook?
Define custom hooks used only for this field.
final
key String?
Use this key instead of the field name.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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