MusicCollectionScreen class

Inheritance

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

Methods

createElement() → StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → State<MusicCollectionScreen>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() → List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) → String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String
Returns a one-line detailed description of the object.
inherited
toStringShort() → String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited