dispose method

  1. @override
void dispose()
override

To dispose the objects.

Implementation

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