fileHumanSize property

String? get fileHumanSize

Gets human-readable file size

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

Example:

final size = await '/path/to/document.pdf'.fileHumanSize();
print(size); // "1.50 MB" (or null)

Implementation

String? get fileHumanSize => QFileInfoUtils.getHumanFileSize(this);