AlbumState class Null safety

The cubit state for a single album.

Annotations

Constructors

AlbumState.failure(Failure failure)
Creates loading failed cubit state for an album.
const
factory
AlbumState.initial()
Creates initial cubit state for an album.
const
factory
AlbumState.inProgress()
Creates loading cubit state for an album.
const
factory
AlbumState.success(Album album)
Creates loading succeeded cubit state for an album.
const
factory

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(_AlbumInitialState value), required TResult inProgress(_AlbumInProgressState value), required TResult success(_AlbumSuccessState value), required TResult failure(_AlbumFailureState value)}) → TResult
@optionalTypeArgs, inherited
mapOrNull<TResult extends Object?>({TResult initial(_AlbumInitialState value)?, TResult inProgress(_AlbumInProgressState value)?, TResult success(_AlbumSuccessState value)?, TResult failure(_AlbumFailureState value)?}) → TResult?
@optionalTypeArgs, inherited
maybeMap<TResult extends Object?>({TResult initial(_AlbumInitialState value)?, TResult inProgress(_AlbumInProgressState value)?, TResult success(_AlbumSuccessState value)?, TResult failure(_AlbumFailureState value)?, required TResult orElse()}) → TResult
@optionalTypeArgs, inherited
maybeWhen<TResult extends Object?>({TResult initial()?, TResult inProgress()?, TResult success(Album album)?, 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(Album album), required TResult failure(Failure failure)}) → TResult
@optionalTypeArgs, inherited
whenOrNull<TResult extends Object?>({TResult initial()?, TResult inProgress()?, TResult success(Album album)?, TResult failure(Failure failure)?}) → TResult?
@optionalTypeArgs, inherited

Operators

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