owner property
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');
}
}
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');
}
}