getBypassSubnets method

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

Get list of subnets in bypass

Implementation

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