LostDataResponse class Null safety

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 or getVideo 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. [...]
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
A string representation of this object. [...]
inherited

Operators

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