initState method

  1. @override
void initState()
override

Called when this object is inserted into the tree.

The framework will call this method exactly once for each State object it creates.

Override this method to perform initialization that depends on the location at which this object was inserted into the tree or on the widget used to configure this object.

Here it overrides to initialize the object that depends on rendering the SfCircularChart.

Implementation

@override
void initState() {
  _stateProperties = CircularStateProperties(
      renderingDetails: RenderingDetails(), chartState: this);

  _stateProperties.isToggled = false;
  _initializeDefaultValues();
  // Create the series renderer while initial rendering //
  _createAndUpdateSeriesRenderer();
  super.initState();
}