dispose method

  1. @override
void dispose()
override

To dispose the objects.

Implementation

@override
void dispose() {
  segmentRect = null;
  _oldSegmentRect = null;
  super.dispose();
}