getFigure method

FigureDefinition? getFigure(
  1. String id
)

Implementation

FigureDefinition? getFigure(String id) {
  final data = getAsset('$kPackFiguresPath/$id.json');
  if (data == null) return null;
  final content = utf8.decode(data);
  return FigureDefinitionMapper.fromJson(content);
}