checkUserIsInBlacklist method

Future<Map> checkUserIsInBlacklist(
  1. String userID
)

Implementation

Future<Map<dynamic, dynamic>> checkUserIsInBlacklist(String userID) async {
  final result =
      await promiseToFuture(ZIM.getInstance()!.checkUserIsInBlacklist(userID))
          .catchError((e) {
    throw PlatformException(code: e.code.toString(), message: e.message);
  });

  return jsObjectToMap(result);
}