dispose method
To dispose the objects.
Implementation
@override
void dispose() {
segmentRect = null;
_oldSegmentRect = null;
points.clear();
super.dispose();
}
To dispose the objects.
@override
void dispose() {
segmentRect = null;
_oldSegmentRect = null;
points.clear();
super.dispose();
}