dispose method

  1. @override
void dispose()
override

To dispose the objects.

Implementation

@override
void dispose() {
  points.clear();
  _drawIndexes.clear();
  super.dispose();
}