getYottaBytes static method

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

It returns the size of the file in yotta bytes

FileSizeType.YottaBytes

Implementation

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