revokeMessage method

Future<Map> revokeMessage(
  1. dynamic message,
  2. dynamic config
)

Implementation

Future<Map<dynamic, dynamic>> revokeMessage(
    dynamic message, dynamic config) async {
  final _message = mapToJSObj(message);
  final _config = mapToJSObj(config);

  final result = await promiseToFuture(
          ZIM.getInstance()!.revokeMessage(_message, _config))
      .catchError((e) {
    throw PlatformException(code: e.code.toString(), message: e.message);
  });

  return jsObjectToMap(result);
}