DataFormat<T extends Object> class
abstract
Base class for formats of data transferred to clipboard and drag & drop. This branches into ValueFormat for data values that need to be converted from and to platform specific formats (such as plain text, HTML snippet, uri) and FileFormat representing files that are processed without conversion (i.e. PNG, JPEG).
- Implementers
- Annotations
-
- @sealed
Constructors
- DataFormat()
-
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
-
call(
T data) → FutureOr< EncodedData> - Encodes the provided data to platform specific format. The encoded data can be added to DataWriterItem.
-
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) theprovider
callback will be called eagerly. -
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