dispose method

  1. @override
void dispose()
override

To dispose the objects.

Implementation

@override
void dispose() {
  _fillPath.reset();
  _strokePath.reset();

  points.clear();
  _drawIndexes.clear();
  _highPoints.clear();
  _lowPoints.clear();
  super.dispose();
}