disableNetwork method

  1. @override
Future<void> disableNetwork()

Disables network usage for this instance. It can be re-enabled via enableNetwork(). While the network is disabled, any snapshot listeners or get() calls will return results from cache, and any write operations will be queued until the network is restored.

Implementation

@override
Future<void> disableNetwork() {
  return convertWebExceptions(_delegate.disableNetwork);
}