updateUserName method
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);
}