UnitLength enum

Unit for lengths.

Inheritance
Available extensions

Values

km → const UnitLength
m → const UnitLength
dm → const UnitLength
cm → const UnitLength
mm → const UnitLength
mic → const UnitLength
nm → const UnitLength
inch → const UnitLength
mi → const UnitLength

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
isImperial bool

Available on UnitLength, provided by the UnitLengthExtension extension

Returns true if this unit is a Imperial System of Units.
no setter
isMetric bool

Available on UnitLength, provided by the UnitLengthExtension extension

Returns true if this unit is a Metric System Unit (officially called International System of Units - SI).
no setter
isSI bool

Available on UnitLength, provided by the UnitLengthExtension extension

Returns true if this unit is a International System of Units (SI), commonly known as the Metric System.
no setter
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
name String

Available on UnitLength, provided by the UnitLengthExtension extension

Returns the name of this unit.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
unit String

Available on UnitLength, provided by the UnitLengthExtension extension

Returns the abbreviation of this unit.
no setter

Methods

convertTo(UnitLength targetUnit, num value) num

Available on UnitLength, provided by the UnitLengthExtension extension

Converts value from this UnitLength to targetUnit.
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

Constants

values → const List<UnitLength>
A constant List of the values in this enum, in order of their declaration.