getTable method

GameTable? getTable([
  1. String name = ''
])

Implementation

GameTable? getTable([String name = '']) {
  final data = getAsset('$kGameTablePath/$name.json');
  if (data == null) return null;
  final content = utf8.decode(data);
  return GameTableMapper.fromJson(content);
}