unit property

String unit

Implementation

String get unit {
  return map(
    bytes: (value) => "B",
    kb: (value) => "KB",
    mb: (value) => "MB",
    gb: (value) => 'GB',
    tb: (value) => "TB",
  );
}