isPrivacyModeEnabled method

  1. @override
Future<bool> isPrivacyModeEnabled()
override

Implementation

@override
Future<bool> isPrivacyModeEnabled() async {
  try {
    final result = await methodChannel.invokeMethod<bool>(
      'isPrivacyModeEnabled',
    );
    return result ?? false;
  } on PlatformException catch (e) {
    debugPrint('Error calling isPrivacyModeEnabled: ${e.message}');
    return false;
  }
}