buildKey method

String buildKey()

Implementation

String buildKey() {
  if (atKeyObj.key != null) {
    return atKeyObj.toString();
  }
  super.atKeyObj
    ..key = atKey
    ..sharedBy = sharedBy
    ..sharedWith = sharedWith
    ..isLocal = isLocal
    ..metadata = (Metadata()
      ..isPublic = isPublic
      ..isCached = isCached);
  // validates the data in the verb builder.
  // If validation is successful, build and return the key;
  // else throws exception.
  validateKey();
  return super.atKeyObj.toString();
}