MusicCollectionState class

O estado de "Minhas músicas": a coleção como a lista a vê, o progresso da trilha, a medida, a ordem e o filtro, as escolhas e o último aviso.

Inheritance

Constructors

MusicCollectionState({List<MusicSummary> summaries = const [], SongListProgress progress = const _NoProgress(), String? lastHash, MusicMeasureState measure = const MusicMeasureState(), MusicListViewState view = const MusicListViewState(), MusicSelectionState selection = const MusicSelectionState(), MusicNoticeState notice = const MusicNoticeState()})
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
lastHash → String?
A última música aberta nesta trilha, que fica no topo ("Última música").
final
measure → MusicMeasureState
final
notice → MusicNoticeState
final
progress → SongListProgress
As etapas feitas da trilha (o que cada linha mostra).
final
props → List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
selection → MusicSelectionState
final
stringify → bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
summaries → List<MusicSummary>
O resumo de cada música da coleção, como a última medida deu.
final
view → MusicListViewState
final

Methods

copyWith({List<MusicSummary>? summaries, SongListProgress? progress, String? lastHash()?, MusicMeasureState? measure, MusicListViewState? view, MusicSelectionState? selection, MusicNoticeState? notice}) → MusicCollectionState
lastHash é uma função para que null possa valer (sem ela, null seria "não mudar").
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