beforeExecuting method
Registers a callback that is invoked before any statement is executed.
callback is a function that receives an ExecutingStatement object.
Returns a function that can be called to unregister the callback.
Implementation
void Function() beforeExecuting(ExecutingStatementCallback callback) {
_beforeExecutingCallbacks.add(callback);
return () => _beforeExecutingCallbacks.remove(callback);
}