disableNetwork method

Future 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

Future disableNetwork() => handleThenable(jsObject.disableNetwork());