DVPickedFile class

A file the person picked.

Constructors

DVPickedFile({required String name, String? path, List<int>? bytes, String type = 'file'})
const

Properties

bytes → List<int>?
The contents, when the picker handed them over directly (the web).
final
hashCode → int
The hash code for this object.
no setterinherited
name → String
The file's name, without a directory.
final
path → String?
Where it is on disk, on targets whose pickers answer with a path (Android, where it is a private copy; macOS, Windows, Linux). Null in a browser, which hands back a file and never a path.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type → String
image, video, audio or file.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readBytes() → Future<List<int>>
The contents, read from path when they were not handed over.
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

fromBinding(Map<Object?, Object?> item) → DVPickedFile