copyWith method

HSkySparkClient copyWith(
  1. String newUri
)

Creates new HSkySparkClient based on existing one with uri for other project.

Works only for different projects within one Skyspark. They have same auth token, no need to get new.

Implementation

HSkySparkClient copyWith(String newUri) {
  var newClient = HSkySparkClient(newUri, _user, _pass);
  newClient._auth = _auth;
  return newClient;
}