dispose method

  1. @override
void dispose()
override

Release any resources held by this node.

Implementation

@override
void dispose() {
  super.dispose();
  _stopListeningStream();
  _completerHandle?.dispose();
  _completerHandle = null;
  _replaceImage(info: null);
  _currentImageProvider?.evict();
  _currentImageProvider = null;
}