getKiloBytes static method

String getKiloBytes(
  1. dynamic data, {
  2. PrecisionValue? value,
})

It returns the size of the file in kilo bytes

FileSizeType.KiloBytes

Implementation

static String getKiloBytes(dynamic data, {PrecisionValue? value}) {
  return "${(_parseValue(data) / 1024).toStringAsFixed(_getPrecisionValue(value ?? _precisionValue))} KB";
}