parent property

A reference pointing to the parent location of this reference, or null if this reference is the root.

Implementation

ReferencePlatform? get parent {
  String? parentPath = _pointer.parent;

  if (parentPath == null) {
    return null;
  }

  return storage.ref(parentPath);
}