getMegaBytes method

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

It returns the size of the file in bytes

FileSizeType.MegaBytes

Implementation

@override
String getMegaBytes(int data, {PrecisionValue? value}) {
  return "${(data / _getDividerValue(2)).toStringAsFixed(_getPrecisionValue(value ?? _precisionValue))} MB";
}