getDeck method

DeckDefinition? getDeck(
  1. String id
)

Implementation

DeckDefinition? getDeck(String id) {
  final data = getAsset('$kPackDecksPath/$id.json');
  if (data == null) return null;
  final content = utf8.decode(data);
  return DeckDefinitionMapper.fromJson(content);
}