LostDataResponse class

The response object of ImagePicker.getLostData.

Only applies to Android. See also:

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

Constructors

LostDataResponse({XFile? file, PlatformException? exception, RetrieveType? type, List<XFile>? files})
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.
LostDataResponse.empty()
Initializes an instance with all member params set to null and considered to be empty.

Properties

exception PlatformException?
The exception of the last getImage, getMultiImage or getVideo.
final
file XFile?
The file that was lost in a previous getImage, getMultiImage, getVideo or getMedia call due to MainActivity being destroyed.
final
files List<XFile>?
The list of files that were lost in a previous getMultiImage 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, RetrieveType.video, or RetrieveType.media.
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