humanSize property

String? get humanSize

Gets human-readable file size

Returns the file size as a string (e.g., "1.5 MB") or null if error occurs

Example:

final file = File('/path/to/document.pdf');
print(file.humanSize); // "1.50 MB" (or null)

Implementation

String? get humanSize => QFileInfoUtils.getHumanFileSize(path);