dispose method

  1. @override
void dispose()
override

Discard any resources being held by the object.

The onChanged callback will not be invoked after this method has been called.

Implementation

@override
void dispose() {
  _imagePainter?.dispose();
  super.dispose();
}