of static method

RadarData of(
  1. BuildContext context
)

Returns the RadarChart from the BuildContext

Implementation

static RadarData of(BuildContext context) {
  final chart = context.findAncestorWidgetOfExactType<RadarChart>();
  if (chart == null) {
    throw RadarChartNotFoundError(context.widget.runtimeType);
  }
  return chart;
}