Discard any resources being held by the object.
The onChanged callback will not be invoked after this method has been called.
@override void dispose() { _imagePainter?.dispose(); super.dispose(); }