removeFromMaster method

void removeFromMaster(
  1. String masterId
)

Implementation

void removeFromMaster(String masterId) {
  final master = _masters[masterId]!;

  for (final combination in master.combinations!) {
    final cardId =
        CardId.fromCombination(combination: combination, master: master.id);
    _state!.cardStates.remove(cardId.uniqueId);
  }
  _cachedCardsSchedule = null;

  _masters.remove(masterId);
}