baseName property

String? get baseName

Gets the file name without extension

Returns the base filename or null if path is invalid

Example:

final file = File('/path/to/document.pdf');
print(file.baseName); // "document"

Implementation

String? get baseName => QFileInfoUtils.getBaseName(path);