Preparing class abstract

Inheritance

Constructors

Preparing()
const
factory
Preparing.fromJson(Map<String, dynamic> json)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
isFailed bool
Returns true if state is Failed
no setterinherited
isInProgress bool
Returns true if state is InProgress
no setterinherited
isPreparing bool
Returns true if state is Preparing
no setterinherited
isSuccess bool
Returns true if state is Success
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

map<TResult extends Object?>({required TResult preparing(Preparing value), required TResult inProgress(InProgress value), required TResult success(Success value), required TResult failed(Failed value)}) → TResult
inherited
mapOrNull<TResult extends Object?>({TResult? preparing(Preparing value)?, TResult? inProgress(InProgress value)?, TResult? success(Success value)?, TResult? failed(Failed value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>({TResult preparing(Preparing value)?, TResult inProgress(InProgress value)?, TResult success(Success value)?, TResult failed(Failed value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult preparing()?, TResult inProgress(int uploaded, int total)?, TResult success()?, TResult failed(String error)?, required TResult orElse()}) → TResult
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes this UploadState to a JSON map.
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>({required TResult preparing(), required TResult inProgress(int uploaded, int total), required TResult success(), required TResult failed(String error)}) → TResult
inherited
whenOrNull<TResult extends Object?>({TResult? preparing()?, TResult? inProgress(int uploaded, int total)?, TResult? success()?, TResult? failed(String error)?}) → TResult?
inherited

Operators

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