dispose method

  1. @override
void dispose()
override

To dispose the objects.

Implementation

@override
void dispose() {
  _currentPointLocation = null;
  _nextPointLocation = null;
  _currentSegment = null;
  _oldSegment = null;
  super.dispose();
}