LostData class

The response object of ImagePicker.retrieveLostData.

Only applies to Android. See also:

  • ImagePicker.retrieveLostData for more details on retrieving lost data.

Constructors

LostData({PickedFile file, PlatformException exception, RetrieveType type})
Creates an instance with the given file, exception, and type. Any of the params may be null, but this is never considered to be empty.
LostData.empty()
Initializes an instance with all member params set to null and considered to be empty.

Properties

exception PlatformException
The exception of the last pickImage or pickVideo. [...]
final
file PickedFile
The file that was lost in a previous pickImage or pickVideo call due to MainActivity being destroyed. [...]
final
hashCode int
The hash code for this object. [...]
read-only, inherited
isEmpty bool
Whether it is an empty response. [...]
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
type RetrieveType
Can either be RetrieveType.image or RetrieveType.video;
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited