disposePainter method

void disposePainter()

Implementation

void disposePainter() {
  _painter?.dispose();
  _painter = null;
}