CustomSubTypeRegistry extension

on

Static Methods

findBySubType(String subType) BaseChartConfig Function(Map<String, dynamic>)?

Available on ChartRegistry, provided by the CustomSubTypeRegistry extension

Look up a registered sub-type factory, returns null if not found.
registerSubType(String subType, BaseChartConfig factory(Map<String, dynamic>)) → void

Available on ChartRegistry, provided by the CustomSubTypeRegistry extension

Register a custom sub-type factory so CustomChartConfig.fromJson can resolve it by "subType" string.