ScalarConverter<T> class
abstract
interface
Typed Data
An object that converts between untyped data and instances of type T
,
which must have value semantics.
Objects returned from fromData must be immutable. toData must return a representation of the object, which recreates the object when given to fromData. The data representation must only use:
- Implementers
- Annotations
-
- @experimental
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
-
fromData(
Object value) → T - Recreates an object from the given data representation.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toData(
T value) → Object - Returns the data representation of the object.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited