getFileName method
Implementation
String getFileName() {
final current = _backend.currentFileObject;
final path = current?.path?.toString() ?? '';
if (path.isEmpty) {
return _fileId.isEmpty ? '' : _fileId;
}
return path.split(RegExp(r'[/\\]')).last;
}