blockAndUnblockIOSApp method

  1. @override
Future<void> blockAndUnblockIOSApp()
override

iOS-specific implementation for blocking and unblocking apps

Implementation

@override
Future<void> blockAndUnblockIOSApp() async {
  try {
    await methodChannel.invokeMethod('blockApp');
  } on PlatformException catch (e) {
    debugPrint('Failed to block/Unbloc iOS app: ${e.message}');
  }
}