ValueFormat<T extends Object> class abstract

Format for values that need to be converted from and to platform specific formats (such as plain text, HTML snippet, uri).

These formats can be used to provide and receive values, but not for generating and receiving virtual files.

Inheritance
Implementers

Constructors

ValueFormat()
const

Properties

codec PlatformCodec<T>
no setter
hashCode int
The hash code for this object.
no setterinherited
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.
override
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.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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