FileFormat class abstract

Base format class for files that are in standardized formats and processed without conversion (i.e. PNG, JPEG).

These format can be used to provide and receive values, but also for providing and receiving virtual files (i.e. content generated on demand).

Inheritance
Implementers

Constructors

FileFormat()
const

Properties

hashCode int
The hash code for this object.
no setterinherited
providerFormat PlatformFormat
Platform format used when providing the virtual file.
no setter
receiverFormats List<PlatformFormat>
List of platform formats used when obtaining VirtualFileReceiver from DataReader. First formats for the list that yields a receiver will be used.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

call(Uint8List data) FutureOr<EncodedData>
Encodes the provided data to platform specific format. The encoded data can be added to DataWriterItem.
override
lazy(DataProvider<Uint8List> 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