sendFriendApplication method

Future<Map> sendFriendApplication(
  1. String userID,
  2. dynamic config
)

Implementation

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

  return jsObjectToMap(result);
}