dispatch method

  1. @override
Cmd? dispatch(
  1. Msg msg
)
override

Dispatches a message through interception, children, then self handlers.

Implementation

@override
Cmd? dispatch(Msg msg) {
  // Drain any pending commands from didUpdateWidget before normal dispatch.
  final pending = _drainPendingCmds();
  final baseCmd = super.dispatch(msg);
  return _coalesceCommands([
    if (pending != null) pending,
    if (baseCmd != null) baseCmd,
  ]);
}