parent property Null safety

Directory parent

The parent directory of this entity.

Implementation

Directory get parent => new Directory(parentOf(path));