AlbumsState class Null safety
The cubit state for a list of albums.
- Annotations
Constructors
- AlbumsState.failure(Failure failure)
-
Creates loading failed cubit state for albums.
constfactory
- AlbumsState.initial()
-
Creates initial cubit state for albums.
constfactory
- AlbumsState.inProgress()
-
Creates loading cubit state for albums.
constfactory
-
AlbumsState.success(List<
Album> albums) -
Creates loading succeeded cubit state for albums.
constfactory
Properties
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
map<
TResult extends Object?> ({required TResult initial(_AlbumsInitialState value), required TResult inProgress(_AlbumsInProgressState value), required TResult success(_AlbumsSuccessState value), required TResult failure(_AlbumsFailureState value)}) → TResult -
@optionalTypeArgs, inherited
-
mapOrNull<
TResult extends Object?> ({TResult initial(_AlbumsInitialState value)?, TResult inProgress(_AlbumsInProgressState value)?, TResult success(_AlbumsSuccessState value)?, TResult failure(_AlbumsFailureState value)?}) → TResult? -
@optionalTypeArgs, inherited
-
maybeMap<
TResult extends Object?> ({TResult initial(_AlbumsInitialState value)?, TResult inProgress(_AlbumsInProgressState value)?, TResult success(_AlbumsSuccessState value)?, TResult failure(_AlbumsFailureState value)?, required TResult orElse()}) → TResult -
@optionalTypeArgs, inherited
-
maybeWhen<
TResult extends Object?> ({TResult initial()?, TResult inProgress()?, TResult success(List< Album> albums)?, TResult failure(Failure failure)?, required TResult orElse()}) → TResult -
@optionalTypeArgs, inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
A string representation of this object. [...]
inherited
-
when<
TResult extends Object?> ({required TResult initial(), required TResult inProgress(), required TResult success(List< Album> albums), required TResult failure(Failure failure)}) → TResult -
@optionalTypeArgs, inherited
-
whenOrNull<
TResult extends Object?> ({TResult initial()?, TResult inProgress()?, TResult success(List< Album> albums)?, TResult failure(Failure failure)?}) → TResult? -
@optionalTypeArgs, inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited