LinearUnitId enum

Defines a list of the most commonly-used units of linear measurement.

These values can be used to create instances Unit, as an alternative to using well-known IDs (WKIDs). In addition to the units in this enumeration, you can also use less commonly-used units, by passing a WKID of a linear unit to the inherited Unit.fromWkid factory method. The function Unit.wkid returns the WKID of the unit.

Inheritance

Constructors

LinearUnitId()
const

Values

other → const LinearUnitId

Indicates that the unit of linear measurement is a custom unit, or a unit that is not listed in the enumerated type. This value may be returned from a LinearUnit created from a WKID of a less commonly used unit of measurement that does not have an equivalent value in this enumeration.

centimeters → const LinearUnitId

Indicates a linear measurement in centimeters. This unit has a WKID of 1033.

feet → const LinearUnitId

Indicates a linear measurement in feet. This unit has a WKID of 9002.

inches → const LinearUnitId

Indicates a linear measurement in inches. This unit has a WKID of 109008.

kilometers → const LinearUnitId

Indicates a linear measurement in kilometers. This unit has a WKID of 9036.

meters → const LinearUnitId

Indicates a linear measurement in meters. This unit has a WKID of 9001.

miles → const LinearUnitId

Indicates a linear measurement in statute miles. This unit has a WKID of 9093.

millimeters → const LinearUnitId

Indicates a linear measurement in millimeters. This unit has a WKID of 1025.

nauticalMiles → const LinearUnitId

Indicates a linear measurement in nautical miles. This unit has a WKID of 9030.

yards → const LinearUnitId

Indicates a linear measurement in yards. This unit has a WKID of 9096.

Properties

coreValue → RT_LinearUnitId
no setter
hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
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

Constants

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