PickResult class

A wrapper object for the result of the image picking operation.

Contains the status of the operation and, if successful, the file that was picked.

Constructors

PickResult(PickResultStatus status, {File? file, String? errorMessage})
Creates a new PickResult.

Properties

errorMessage → String?
An optional error message, only non-null if the status is PickResultStatus.permissionDenied or PickResultStatus.unknownError.
final
file → File?
The picked image File. This is only non-null if the status is PickResultStatus.success.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status → PickResultStatus
The outcome of the picking operation.
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