addAddress method

  1. @override
Future<bool> addAddress(
  1. String address,
  2. int prefixLength
)
override

Implementation

@override
Future<bool> addAddress(String address, int prefixLength) async {
  try {
    final bool result = await methodChannel.invokeMethod(
        'addAddress', {'address': address, 'prefixLength': prefixLength});
    return result;
  } on PlatformException catch (e) {
    throw "Error adding address: ${e.message}";
  }
}