name property
String
get
name
获取文件名
Implementation
String get name {
if (fileName != null) return fileName!;
if (file != null) return _extractFileName(file!.path);
if (filePath != null) return _extractFileName(filePath!);
return 'file';
}