getBlockedDomains method

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

Get list of blocked domains/sites

Implementation

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