dispatch method
Dispatches msg to the root element.
Implementation
Cmd? dispatch(Msg msg) {
final cmd = _root.dispatch(msg);
_flushDirtyBuilds();
final mountInit = _owner.drainMountInitCmds();
return _coalesceCommands([
if (cmd != null) cmd,
if (mountInit != null) mountInit,
]);
}