TypeConverter<T, I> class abstract

Extend TypeConverter to convert any type to a type supported by Isar.

It is your responsibility to make this class backwards compatible if you change the schema of your collection.

Constructors

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

fromIsar(I object) → T
Convert the value from the Isar type to the Dart type.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toIsar(T object) → I
Convert the value from the Dart type to the Isar type.
toString() String
A string representation of this object.
inherited

Operators

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