CustomCast<T> class final

A cast with your own conversion: CustomCast.new takes a function reading the raw value and one writing the attribute.

Inheritance

Constructors

CustomCast(T? _get(Object? raw), Object? _set(T? value))
Reads with the first function and writes with the second.
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

get(Object? raw) → Object?
The attribute value for the raw database value raw.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
set(Object? value) → Object?
The database value for the attribute value.
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited