DVIncomingFile class

One file the application was given.

Constructors

DVIncomingFile({required String name, String? mimeType, String? path, Uri? uri, int? size, Future<Uint8List> read()?})
const
DVIncomingFile.atPath(String path, {String? mimeType})
A file on this machine's filesystem, as a file manager drop names it.
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
mimeType → String?
Its type when the platform said, else one guessed from the extension.
final
name → String
The file's name, without a directory.
final
path → String?
A filesystem path, where the platform gave one (desktop, iOS copies).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
size → int?
Its size in bytes, when known before reading.
final
uri → Uri?
A content:// URI on Android, or a link the drop carried instead.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readBytes() → Future<Uint8List>
The file's contents.
toJson() → Map<String, Object?>
toString() → String
A string representation of this object.
override

Operators

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