batchStart method

Future<bool> batchStart()

Start a batch to commit all of the operations in a batch as a single atomic unit

Implementation

Future<bool> batchStart() async {
  bool isStarted = true;
  if (openedBatch[_dbModel!.databaseName!] == null) {
    final Database db = (await this.db)!;
    openedBatch[_dbModel!.databaseName!] = db.batch();
    isStarted = false;
  }
  return isStarted;
}