didDetachRenderer method

  1. @override
void didDetachRenderer()
override

Implementation

@override
void didDetachRenderer() {
  super.didDetachRenderer();
  style.removeStyleChangeListener(_styleChangedListener);
  painter.dispose();
  renderCustomPaint = null;
}