didDetachRenderer method

  1. @override
void didDetachRenderer()
override

Implementation

@override
void didDetachRenderer() async {
  super.didDetachRenderer();
  style.removeStyleChangeListener(_stylePropertyChanged);

  _stopListeningStream(keepStreamAlive: true);

  _currentImageProvider?.evict();
  _currentImageProvider = null;

  _cachedImageInfo?.dispose();
  _cachedImageInfo = null;

  _renderImage?.dispose();
  _renderImage = null;

}