handleMsg method
Lets the probe observe/intercept messages while active.
Return true to consume the message.
Implementation
@override
bool handleMsg(Msg msg, StartupProbeContext ctx) {
if (!_active || _done.isCompleted) return false;
if (msg is BackgroundColorMsg || msg is ColorSchemeMsg) {
_done.complete();
return false;
}
if (msg case UvEventMsg(event: final ev)) {
if (ev is uvev.DarkColorSchemeEvent || ev is uvev.LightColorSchemeEvent) {
_done.complete();
return false;
}
}
return false;
}