dispose method

  1. @override
void dispose()
override

To dispose the objects.

Implementation

@override
void dispose() {
  _startControlHighXValues.clear();
  _startControlHighYValues.clear();
  _endControlHighXValues.clear();
  _endControlHighYValues.clear();
  _startControlLowXValues.clear();
  _startControlLowYValues.clear();
  _endControlLowXValues.clear();
  _endControlLowYValues.clear();
  _fillPath.reset();
  _strokePath.reset();

  points.clear();
  _drawIndexes.clear();
  _highPoints.clear();
  _lowPoints.clear();
  _startControlHighPoints.clear();
  _endControlHighPoints.clear();
  _startControlLowPoints.clear();
  _endControlLowPoints.clear();
  super.dispose();
}