DataReader class abstract
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
platformFormats
→ List<
PlatformFormat> -
Returns list of platform specific format identifiers for this item.
no setter
- rawReader → DataReaderItem?
-
If this reader is backed by raw DataReaderItem returns it.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
canProvide(
DataFormat< Object> format) → bool - Returns true value for data format is possibly available in this reader.
-
getFile(
FileFormat? format, AsyncValueChanged< DataReaderFile> onFile, {ValueChanged<Object> ? onError, bool allowVirtualFiles = true, bool synthesizeFilesFromURIs = true}) → ReadProgress? - Loads file for the given format.
-
getFormats(
List< DataFormat< allFormats) → List<Object> >DataFormat< Object> > -
Returns subset of
allFormats
that this reader can provide, sorted according to priority set by source application. -
getSuggestedName(
) → Future< String?> - Returns suggested file name for the contents (if available). This is the best guess that can be provided from reader. You may be able to get more accurate name after receiving the DataReaderFile through getFile.
-
getValue<
T extends Object> (ValueFormat< T> format, AsyncValueChanged<T?> onValue, {ValueChanged<Object> ? onError}) → ReadProgress? - Loads the value for the given format.
-
getVirtualFileReceiver(
{FileFormat? format}) → Future< VirtualFileReceiver?> -
Returns virtual file receiver for given format or
null
if virtual data for the format is not available. If format is not specified returns receiver for format with highest priority (if any). -
hasValue(
DataFormat< Object> format) → bool -
isSynthesized(
DataFormat< Object> format) → bool - Returns whether value for given format is being synthesized. On Windows DIB images are accessible as PNG (converted on demand), same thing is done on macOS for TIFF images.
-
isVirtual(
DataFormat< Object> format) → bool -
When
true
, data in this format is virtual. It means it might not be readily available and may be generated on demand. This is true for example when dropping images from iPhone (they will be downloaded after dropped). -
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
Static Methods
-
forItemInfo(
DataReaderItemInfo info) → DataReader - Creates data reader from provided item info.