name property

  1. @override
String get name
override

A string containing the name of the file or directory

Implementation

@override
String get name {
  final parts = _path.split('/');
  return parts.isEmpty ? '' : parts.last;
}