getGigaBytes static method

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

It returns the size of the file in giga bytes

FileSizeType.GigaBytes

Implementation

static String getGigaBytes(dynamic data, {PrecisionValue? value}) {
  return "${(_parseValue(data) / _getDividerValue(3)).toStringAsFixed(_getPrecisionValue(value ?? _precisionValue))} GB";
}