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.
no setterinherited
isEmpty bool
Whether it is an empty response.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type RetrieveType?
Can either be RetrieveType.image or RetrieveType.video;
final

Methods

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