fileName property
String?
get
fileName
Gets the file name from this URI path.
Implementation
String? get fileName {
if (path.isEmpty) return null;
final String lastSegment = path.split('/').lastOrNull ?? '';
return lastSegment.isEmpty ? null : lastSegment;
}