AttributeConverter<T, S> class abstract

Base class for custom type converters.

T is the Dart type, and S is the database type (e.g., String, int).

Constructors

AttributeConverter()
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

convertToDatabaseColumn(T entityValue) → S
Converts the value from the Dart type T to the database type S.
convertToEntityAttribute(S databaseValue) → T
Converts the value from the database type S to the Dart type T.
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