FileSystemEntityExtensions extension

Helpers shared by files, folders and links.

File('C:/projects/app/pubspec.yaml').name; // 'pubspec.yaml'
Directory('lib/src/').name;               // 'src'
on

Properties

name → String

Available on FileSystemEntity, provided by the FileSystemEntityExtensions extension

The last part of the path, like notes.txt or src.
no setter