unit property

String get unit

Implementation

String get unit {
  return switch (this) {
    BytesModel() => "B",
    KbModel() => "KB",
    MbModel() => "MB",
    GbModel() => "GB",
    TbModel() => "TB",
  };
}