fileName property

String? get fileName

Gets the file name from this path (including extension)

Returns the filename or null if path is invalid

Example:

print('/path/to/document.pdf'.fileName); // "document.pdf"

Implementation

String? get fileName => QFileInfoUtils.getFileName(this);