get method
Gets an ordinal field of the node.
@param field the ordinal field to get @return the currently set value @throws StorageException if a field does not existImplementation
Future<String?> get(Field field) async {
if (!_skeletonOrdinals.contains(field)) {
await _init();
switch (field) {
case Field.owner:
case Field.path:
case Field.visibility:
case Field.lastModified:
case Field.expiry:
return _ordinals[field];
case Field.name:
return getNameFromPath(_ordinals[Field.path]);
default:
throw StorageException('unable to fetch field ' + field.toString());
}
} else {
return _getSkeleton(field);
}
}