Unit enum
An enum representing the units of file size.
Values
- byte → const Unit
-
The byte unit.
const Unit(orderOfMagnitude: 0, baseType: BaseType.metric, representation: <FormatType, String>{FormatType.short : "B", FormatType.long : "byte"})
- kilobyte → const Unit
-
The kilobyte unit.
const Unit(orderOfMagnitude: 1, baseType: BaseType.metric, representation: <FormatType, String>{FormatType.short : "KB", FormatType.long : "kilobyte"})
- megabyte → const Unit
-
The megabyte unit.
const Unit(orderOfMagnitude: 2, baseType: BaseType.metric, representation: <FormatType, String>{FormatType.short : "MB", FormatType.long : "megabyte"})
- gigabyte → const Unit
-
The gigabyte unit.
const Unit(orderOfMagnitude: 3, baseType: BaseType.metric, representation: <FormatType, String>{FormatType.short : "GB", FormatType.long : "gigabyte"})
- terabyte → const Unit
-
The terabyte unit.
const Unit(orderOfMagnitude: 4, baseType: BaseType.metric, representation: <FormatType, String>{FormatType.short : "TB", FormatType.long : "terabyte"})
- petabyte → const Unit
-
The petabyte unit.
const Unit(orderOfMagnitude: 5, baseType: BaseType.metric, representation: <FormatType, String>{FormatType.short : "PB", FormatType.long : "petabyte"})
- exabyte → const Unit
-
The exabyte unit.
const Unit(orderOfMagnitude: 6, baseType: BaseType.metric, representation: <FormatType, String>{FormatType.short : "EB", FormatType.long : "exabyte"})
- zettabyte → const Unit
-
The zettabyte unit.
const Unit(orderOfMagnitude: 7, baseType: BaseType.metric, representation: <FormatType, String>{FormatType.short : "ZB", FormatType.long : "zettabyte"})
- yottabyte → const Unit
-
The yottabyte unit.
const Unit(orderOfMagnitude: 8, baseType: BaseType.metric, representation: <FormatType, String>{FormatType.short : "YB", FormatType.long : "yottabyte"})
- kibibyte → const Unit
-
The kibibyte unit.
const Unit(orderOfMagnitude: 1, baseType: BaseType.binary, representation: <FormatType, String>{FormatType.short : "KiB", FormatType.long : "kibibyte"})
- mebibyte → const Unit
-
The mebibyte unit.
const Unit(orderOfMagnitude: 2, baseType: BaseType.binary, representation: <FormatType, String>{FormatType.short : "MiB", FormatType.long : "mebibyte"})
- gibibyte → const Unit
-
The gibibyte unit.
const Unit(orderOfMagnitude: 3, baseType: BaseType.binary, representation: <FormatType, String>{FormatType.short : "GiB", FormatType.long : "gibibyte"})
- tebibyte → const Unit
-
The tebibyte unit.
const Unit(orderOfMagnitude: 4, baseType: BaseType.binary, representation: <FormatType, String>{FormatType.short : "TiB", FormatType.long : "tebibyte"})
- pebibyte → const Unit
-
The pebibyte unit.
const Unit(orderOfMagnitude: 5, baseType: BaseType.binary, representation: <FormatType, String>{FormatType.short : "PiB", FormatType.long : "pebibyte"})
- exbibyte → const Unit
-
The exbibyte unit.
const Unit(orderOfMagnitude: 6, baseType: BaseType.binary, representation: <FormatType, String>{FormatType.short : "EiB", FormatType.long : "exbibyte"})
- zebibyte → const Unit
-
The zebibyte unit.
const Unit(orderOfMagnitude: 7, baseType: BaseType.binary, representation: <FormatType, String>{FormatType.short : "ZiB", FormatType.long : "zebibyte"})
- yobibyte → const Unit
-
The yobibyte unit.
const Unit(orderOfMagnitude: 8, baseType: BaseType.binary, representation: <FormatType, String>{FormatType.short : "YiB", FormatType.long : "yobibyte"})
Properties
- baseType → BaseType
-
The base type of the unit.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - orderOfMagnitude → int
-
The order of magnitude of the unit.
final
-
representation
→ Map<
FormatType, String> -
The string representation of the unit.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited