addAddress method
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}";
}
}