removeAllBlockedPhoneNumbers method

Future<void> removeAllBlockedPhoneNumbers()

Invokes FlutterCallkitPlugin.didRemoveAllBlockedPhoneNumbers property in the native iOS code.

FlutterCallkitPlugin.didRemoveAllBlockedPhoneNumbers property must be assigned with a function that removes all blocked numbers from your storage.

If the property is not assigned in the native iOS code, FCXPluginError.ERROR_HANDLER_NOT_REGISTERED will be thrown.

Implementation

Future<void> removeAllBlockedPhoneNumbers() async {
  try {
    String method = 'removeAllBlockedPhoneNumbers';
    await _methodChannel.invokeMethod('$_PLUGIN.$method');
    _FCXLog._i(runtimeType, method);
  } on PlatformException catch (e) {
    var exception = FCXException(e.code, e.message);
    _FCXLog._e(runtimeType, exception);
    throw exception;
  }
}