CustomValueFormat<T extends Object> class

Inheritance

Constructors

CustomValueFormat({required String applicationId, Future<T?> onDecode(Object value, String platformType)?, FutureOr<Object> onEncode(T value, String platformType)?})
const

Properties

applicationId String
final
codec PlatformCodec<T>
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
onDecode Future<T?> Function(Object value, String platformType)?
final
onEncode FutureOr<Object> Function(T value, String platformType)?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

call(T data) FutureOr<EncodedData>
Encodes the provided data to platform specific format. The encoded data can be added to DataWriterItem.
inherited
lazy(DataProvider<T> provider) FutureOr<EncodedData>
Encodes the provided lazy data. Some platforms support providing the data on demand. In which case the provider callback will be invoked when the data is requested. On platforms that do not support this (iOS, web) the provider callback will be called eagerly.
inherited
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