updateFriendAlias method

Future<Map> updateFriendAlias(
  1. String friendAlias,
  2. String userID
)

Implementation

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

  return jsObjectToMap(result);
}