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 SecondaryDeviceAttributesMsg) {
_sawSecondaryAttributes = true;
} else if (msg is KeyboardEnhancementsMsg) {
_sawKeyboardEnhancements = true;
}
if (_sawSecondaryAttributes && _sawKeyboardEnhancements) {
_done.complete();
}
return false;
}