close method

void close()

Stops listening to the provider.

Calling close may lead to the state of the listened provider to be destroyed, if that provider uses the .autoDispose modifier.

Implementation

void close() {
  if (_listener.list != null) {
    _listener.unlink();
    _listener.element.mayNeedDispose();
  }
}