getMegaBytes static method

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

It returns the size of the file in mega bytes

FileSizeType.MegaBytes

Implementation

static String getMegaBytes(dynamic data, {PrecisionValue? value}) {
  return "${(_parseValue(data) / _getDividerValue(2)).toStringAsFixed(_getPrecisionValue(value ?? _precisionValue))} MB";
}