getKiloBytes method

  1. @override
String getKiloBytes(
  1. int data, {
  2. PrecisionValue? value,
})
override

It returns the size of the file in bytes

FileSizeType.KiloBytes

Implementation

@override
String getKiloBytes(int data, {PrecisionValue? value}) {
  return "${(data / 1024).toStringAsFixed(_getPrecisionValue(value ?? _precisionValue))} KB";
}