prettyStorageUnit method

String prettyStorageUnit()

Implementation

String prettyStorageUnit() {
  var kb = this;
  if (kb < 1000) return 'KB';
  if (kb < 1048576) return 'MB';
  return 'GB';
}