dispose method

  1. @override
void dispose()
override

Disposes this PageProvider, freeing any resources it might've occupied.

Implementation

@override
void dispose() {
  _timeoutTimer?.cancel();
  _watchSubscription?.cancel();

  for (var e in _completers) {
    if (!e.isCompleted) {
      e.complete([]);
    }
  }
}