getFigure method
- 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);
}