import 'package:filesize/filesize.dart';

class DataUnitFormatHelper {
  static String prettyFilesize(int bytes) {
    return filesize(bytes, 1);
  }
}

import 'package:filesize/filesize.dart';

class DataUnitFormatHelper {
  static String prettyFilesize(int bytes) {
    return filesize(bytes, 1);
  }

  static String bitrate(int kiloBitsPerSecond) {
    if (kiloBitsPerSecond < 1000) {
      return '$kiloBitsPerSecond Kbps';
    }

    return '${kiloBitsPerSecond / 1000} Mbps';
  }
}

Add bitrate data unit helper.
Add bitrate data unit helper.
