humanSize property
String
get
humanSize
Returns a human-readable string representation of the file size.
Implementation
String get humanSize {
if (sizeBytes == null) return '';
final kb = sizeBytes! / 1024;
if (kb < 1024) return '${kb.toStringAsFixed(1)} KB';
return '${(kb / 1024).toStringAsFixed(1)} MB';
}