getPetaBytes static method

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

It returns the size of the file in peta bytes

FileSizeType.PetaBytes

Implementation

static String getPetaBytes(dynamic data, {PrecisionValue? value}) {
  num r = _parseValue(data) / _getDividerValue(5);
  return "${r.toStringAsFixed(_getPrecisionValue(value ?? _precisionValue))} PB";
}