parent property
AGCStorageReference?
parent
Obtains the reference to the parent directory. If the current directory is the root directory, null will return.
Implementation
AGCStorageReference? get parent => (this != root)
? AGCStorageReference._(
storage,
(path.replaceAll(RegExp(r'/$'), '').split('/')..removeLast())
.join('/') +
'/')
: null;