purgeOutstandingWrites method

Future<void> purgeOutstandingWrites()

The Firebase Database client automatically queues writes and sends them to the server at the earliest opportunity, depending on network connectivity. In some cases (e.g. offline usage) there may be a large number of writes waiting to be sent. Calling this method will purge all outstanding writes so they are abandoned.

All writes will be purged, including transactions and onDisconnect writes. The writes will be rolled back locally, perhaps triggering events for affected event listeners, and the client will not (re-)send them to the Firebase Database backend.

Implementation

Future<void> purgeOutstandingWrites() {
  return _delegate.purgeOutstandingWrites();
}