runCommit<T> function

  1. @mustCallSuper
  2. @protected
FutureOr<T> runCommit<T>(
  1. CommitCallback<T> callback, {
  2. String? debugName,
})

This method execute provide callback

This method used in commit to execute provided callback. You can override this method to declare custom logic which for example can be evaluated before and after execution of callback

Implementation

@mustCallSuper
@protected
FutureOr<T> runCommit<T>(
  CommitCallback<T> callback, {
  String? debugName,
}) async {
  return await callback();
}