removeIntersectionChangeListener method

void removeIntersectionChangeListener(
  1. IntersectionChangeCallback callback
)

Implementation

void removeIntersectionChangeListener(IntersectionChangeCallback callback) {
  if (_listeners == null) {
    _onIntersectionChange = null;
    return;
  }

  _listeners!.remove(callback);
  if (_listeners!.isEmpty) {
    _listeners = null;
    _onIntersectionChange = null;
  }
}