MusicCollectionScreen class
Constructors
-
MusicCollectionScreen({Key? key, required MusicCatalog catalog, Future<String?> pickFolder() = pickMusicFolder, Future<List<({Uint8List bytes, String name})>> pickFiles() = pickMusicFiles, Future<List<({Uint8List bytes, String name})>> pickFolderFiles() = pickMusicFolderFiles, bool? canPickFolderFiles, MusicTrackStore? itemsStore, SongListTrack? track, Future<void> onSong(BuildContext context, MusicSummary summary)?, Future<void> onListen(BuildContext context, ExerciseSource source)?})
-
const
Properties
-
canPickFolderFiles
→ bool?
-
Se o botão "Acrescentar uma pasta" aparece;
null segue a plataforma
(só o Android).
final
-
catalog
→ MusicCatalog
-
final
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
itemsStore
→ MusicTrackStore?
-
As etapas feitas, para o progresso de cada música. Injetável nos testes; o
padrão lê o aparelho.
final
-
key
→ Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
-
onListen
→ Future<void> Function(BuildContext context, ExerciseSource source)?
-
Abre a prévia "Ouvir" de uma linha (LP23.8d), na tela do exercício. Sem ele,
a linha não tem o botão.
final
-
onSong
→ Future<void> Function(BuildContext context, MusicSummary summary)?
-
Abre a tela da música de uma linha (a lista do LP24.6). Sem ele, a linha
não abre nada.
final
-
pickFiles
→ Future<List<({Uint8List bytes, String name})>> Function()
-
Pede os arquivos (Android, Web). Injetável nos testes.
final
-
pickFolder
→ Future<String?> Function()
-
Pede a pasta (desktop). Injetável nos testes.
final
-
pickFolderFiles
→ Future<List<({Uint8List bytes, String name})>> Function()
-
Pede uma pasta e traz as músicas dela (Android). Injetável nos testes.
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
track
→ SongListTrack?
-
O que a lista faz nesta trilha (o progresso, o filtro, o "Ouvir"). Sem ele, é a
da leitura pela música (com itemsStore, se houver).
final