owner property

  1. @override
String owner
override

Gets the owner of the current object.

Returns string representation of the owner.

Implementation

@override
String get owner {
  try {
    return _ordinals[Field.owner] ?? '<UNSET>';
  } on StorageException {
    throw Exception('Oops.... this should not happen... contact developer');
  }
}
  1. @override
void owner=(String newOwner)
override

Sets the owner string.

Sets tho owner string of the node to newOwner.

Returns the previously set owner owner string.

Implementation

@override
set owner(String newOwner) {
  if (newOwner.contains('\\:')) {
    throw StorageException('owner may not contain ":" character');
  }
  try {
    touch();
    _ordinals[Field.owner] = newOwner;
  } on StorageException {
    throw Exception('Oops.... this should not happen... contact developer');
  }
}