apply abstract method

Future<List<Object?>> apply({
  1. bool? noResult,
  2. bool? continueOnError,
})

Runs all statements in this batch non-atomically.

Unlike commit, which starts a transaction to commit statements in this batch atomically, apply will simply run the statements without starting a transaction internally.

This can be useful in the rare cases where you don't need a sqflite transaction, for instance because you are manually starting a transaction or because you simply don't need the batch to be applied atomically.

In general, prefer commit to run batches over this method.

Implementation

Future<List<Object?>> apply({bool? noResult, bool? continueOnError});