getPetaBytes method

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

It returns the size of the file in bytes

FileSizeType.PetaBytes

Implementation

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