chordPlayItemsOf function
- ChordPlayLayer layer, {
- required int sections,
- required bool hasWhole,
Os itens de uma camada numa música: cada trecho (índices de 0 a sections - 1)
com as etapas, e, se hasWhole, a música inteira.
Implementation
List<ChordPlayItem> chordPlayItemsOf(
ChordPlayLayer layer, {
required int sections,
required bool hasWhole,
}) => [
for (var section = 0; section < sections; section++)
for (final stage in kChordPlayStages)
ChordPlayItem(layer: layer, section: section, stage: stage),
if (hasWhole)
for (final stage in kChordPlayStages)
ChordPlayItem(layer: layer, stage: stage),
];