getTeraBytes static method

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

It returns the size of the file in tera bytes

FileSizeType.TeraBytes

Implementation

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