ChordPlayState class
O estado da trilha "Tocar pela cifra" (ver o arquivo).
- Implemented types
- Annotations
Constructors
-
ChordPlayState({String? hash, Set<
String> played = const {}, Map<String, Set< done = const {}})String> > -
const
- ChordPlayState.fromJson(Object? json)
-
Lê o JSON guardado; o que não for válido volta ao vazio.
factory
Properties
-
done
→ Map<
String, Set< String> > -
Música (o resumo) → as chaves dos itens feitos nela (
ChordPlayItem.key).final - hash → String?
-
A última música aberta nesta trilha;
nullse nenhuma.final - hashCode → int
-
The hash code for this object.
no setterinherited
-
played
→ Set<
String> -
As músicas com alguma etapa feita.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
doneOf(
String hash) → Set< String> -
As chaves dos itens feitos da música
hash(vazio se nenhum).override -
isDone(
String hash, ChordPlayItem item) → bool -
O item
itemestá feito na músicahash. -
markDone(
String hash, ChordPlayItem item) → ChordPlayState -
O item
itemda músicahashfica feito. Refazer um item feito não muda nada. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> -
toString(
) → String -
A string representation of this object.
inherited
-
withLast(
String hash) → ChordPlayState -
A música
hashé a última aberta (a lista a põe no topo); não conta como tocada.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited