onCommit method

void onCommit(
  1. Future<void> callback()
)

Implementation

void onCommit(Future<void> Function() callback) {
  listeners.add(callback);
}