chordPlayListTrack function

SongListTrack chordPlayListTrack({
  1. ChordPlayStore? store,
})

A lista de "Tocar pela cifra" (MusicCollectionScreen): o progresso, o filtro e o texto de linha desta trilha, e o "Ouvir" da referĂȘncia.

Implementation

SongListTrack chordPlayListTrack({ChordPlayStore? store}) {
  final track = store ?? ChordPlayStore();
  return SongListTrack(
    load: () => track.load(),
    markLast: (hash) async {
      await track.save((await track.load()).withLast(hash));
    },
    lineOf: chordSongLinesOf,
    inFilter: chordInFilter,
    subtitleOf: chordSummaryLine,
    listenOf: chordListenOf,
  );
}