getGigaBytes method

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

It returns the size of the file in bytes

FileSizeType.GigaBytes

Implementation

@override
String getGigaBytes(int data, {PrecisionValue? value}) {
  return "${(data / _getDividerValue(3)).toStringAsFixed(_getPrecisionValue(value ?? _precisionValue))} GB";
}