startBatchUpdate method

  1. @override
Future<bool> startBatchUpdate()
override

Start a batch update (multiple operations that will be applied atomically)

Implementation

@override
Future<bool> startBatchUpdate() async {
  if (_batchUpdateInProgress) {
    return false;
  }

  _batchUpdateInProgress = true;
  _pendingBatchUpdates.clear();
  return true;
}