isSupported method

  1. @override
Future<bool> isSupported(
  1. SettingsPanel panel
)
override

Returns true if panel is supported on the current platform.

Implementation

@override
Future<bool> isSupported(SettingsPanel panel) async {
  try {
    final result = await methodChannel.invokeMethod<bool>(
      'isSupported',
      {'panel': panel.name},
    );
    return result ?? false;
  } on PlatformException catch (e) {
    debugPrint('[OpenSettingsPanel] Error checking support for ${panel.name}: ${e.message}');
    return false;
  }
}