onceDiagnostic method

  1. @override
void onceDiagnostic({
  1. required DiagnosticHandler handler,
})
inherited

Implementation

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