commit method
Commits all of the writes in this write batch as a single atomic unit.
Returns non-null Future that resolves once all of the writes in the batch have been successfully written to the backend as an atomic unit. Note that it won't resolve while you're offline.
Implementation
Future<void> commit() => handleThenable(jsObject.commit());