getCardsByIds method

  1. @override
Future<List<SRSCardState>> getCardsByIds(
  1. List<String> cardIds
)
override

Loads card states matching the list of cardIds, maintaining order where possible.

Implementation

@override
Future<List<SRSCardState>> getCardsByIds(List<String> cardIds) async {
  return cardIds
      .map((id) => _store[id])
      .where((s) => s != null)
      .cast<SRSCardState>()
      .toList();
}