diagnostics method

  1. @override
Future<JackfieldDiagnostics> diagnostics()
override

Reads sanitized native permission and queue diagnostics.

Implementation

@override
Future<JackfieldDiagnostics> diagnostics() async {
  try {
    return WireCodec.decodeDiagnostics(
      await _channel.invokeMethod<Object?>(
        'diagnostics',
        WireCodec.encodeQuery(),
      ),
    );
  } on MissingPluginException {
    return super.diagnostics();
  } on PlatformException {
    throw const JackfieldTransportException.platformFailure();
  }
}