removeAttribute method

  1. @override
void removeAttribute(
  1. String key
)
override

Implementation

@override
void removeAttribute(String key) {
  super.removeAttribute(key);
  if (key == 'src') {
    _stopListeningStream(keepStreamAlive: true);
  } else if (key == 'loading' && _isInLazyLoading && _currentImageProvider == null) {
    _removeIntersectionChangeListener();
    _stopListeningStream(keepStreamAlive: true);
  }
}