getBlockedApps method

  1. @override
Future<List<String>> getBlockedApps()
override

Get list of blocked apps

Implementation

@override
Future<List<String>> getBlockedApps() async {
  try {
    final apps = await methodChannel.invokeMethod<List<dynamic>>('getBlockedApps');
    if (apps != null) {
      return apps.cast<String>();
    }
    return [];
  } catch (e) {
    debugPrint('Error getting blocked apps: $e');
    return [];
  }
}