setGroupMemberNickname method

Future<Map> setGroupMemberNickname(
  1. String nickname,
  2. String forUserID,
  3. String groupID
)

Implementation

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

  return jsObjectToMap(result);
}