updateUserName method

Future<Map> updateUserName(
  1. String userName
)

Implementation

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

  return jsObjectToMap(result);
}