DataPickerLoadStatus class sealed
A sealed class that defines the status of the data picker.
It is used to notify the user of the status of the data picker.
There are three types of status: done, error, and progress.
See DataPickerLoadStatus.done for a done status, see DataPickerLoadStatus.error for an error status, and see DataPickerLoadStatus.progress for a progress status.
- Available extensions
- Annotations
-
- @freezed
Constructors
- DataPickerLoadStatus.done()
-
A done status of the data picker.
constfactory
- DataPickerLoadStatus.error(String error)
-
An error status of the data picker.
constfactory
- DataPickerLoadStatus.progress()
-
A progress status of the data picker.
constfactory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
map<
TResult extends Object?> ({required TResult done(PickerLoadStatusDone value), required TResult error(PickerLoadStatusError value), required TResult progress(PickerLoadStatusProgress value)}) → TResult -
Available on DataPickerLoadStatus, provided by the DataPickerLoadStatusPatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> ({TResult? done(PickerLoadStatusDone value)?, TResult? error(PickerLoadStatusError value)?, TResult? progress(PickerLoadStatusProgress value)?}) → TResult? -
Available on DataPickerLoadStatus, provided by the DataPickerLoadStatusPatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> ({TResult done(PickerLoadStatusDone value)?, TResult error(PickerLoadStatusError value)?, TResult progress(PickerLoadStatusProgress value)?, required TResult orElse()}) → TResult -
Available on DataPickerLoadStatus, provided by the DataPickerLoadStatusPatterns extension
A variant ofmapthat fallback to returningorElse. -
maybeWhen<
TResult extends Object?> ({TResult done()?, TResult error(String error)?, TResult progress()?, required TResult orElse()}) → TResult -
Available on DataPickerLoadStatus, provided by the DataPickerLoadStatusPatterns extension
A variant ofwhenthat fallback to anorElsecallback. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
when<
TResult extends Object?> ({required TResult done(), required TResult error(String error), required TResult progress()}) → TResult -
Available on DataPickerLoadStatus, provided by the DataPickerLoadStatusPatterns extension
Aswitch-like method, using callbacks. -
whenOrNull<
TResult extends Object?> ({TResult? done()?, TResult? error(String error)?, TResult? progress()?}) → TResult? -
Available on DataPickerLoadStatus, provided by the DataPickerLoadStatusPatterns extension
A variant ofwhenthat fallback to returningnull
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited