DVOpenedFile class

One file the application was opened with, shared, or picked.

Constructors

DVOpenedFile({required String name, String? path, String? mimeType, int? size, String? uri, List<int>? bytes})
DVOpenedFile.atPath(String path, {String? mimeType})
A file at path, named after its last segment.
factory

Properties

extension → String
The extension, lower-case and without its dot; empty when there is none.
no setter
hashCode → int
The hash code for this object.
no setterinherited
mimeType → String?
Its type as the platform reported it, or null when it did not.
final
name → String
The file's name, march.order.
final
path → String?
Where it is on disk, or null in a browser, where a file has no path.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
size → int?
Its size in bytes, when known before reading it.
final
uri → String?
The content:// URI it came from on Android, before it was copied.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read() → Future<List<int>>
Its contents.
toString() → String
A string representation of this object.
override

Operators

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

Static Methods

fromMap(Map<Object?, Object?> map) → DVOpenedFile?
What a binding reports: {path, name, mimeType, size or bytes, uri}. Null for a shape with neither a path nor bytes, which opens nothing.