markDone method

ChordPlayState markDone(
  1. String hash,
  2. ChordPlayItem item
)

O item item da música hash fica feito. Refazer um item feito não muda nada.

Implementation

ChordPlayState markDone(String hash, ChordPlayItem item) => ChordPlayState(
  hash: this.hash,
  played: {...played, hash},
  done: {
    ...done,
    hash: {...doneOf(hash), item.key},
  },
);