FileSystemEntityExtension extension Null safety

on

Methods

when<R>({R file(File file)?, R directory(Directory directory)?, R link(Link link)?}) → R?
Handle every possible FS entity.