onceDiagnostic method
Implementation
@override
void onceDiagnostic({required DiagnosticHandler handler}) {
onDiagnostic(handler: handler).onData((data) {
if (data.containsKey(HostEventType.diagnostic)) {
offDiagnostic(handler: handler);
}
});
}