LinearUnit class final

Defines a linear unit of measurement.

The linear unit class is derived from the unit class.

Inheritance

Constructors

LinearUnit.new({required LinearUnitId unitId})
Creates a unit given its known id.
factory
LinearUnit.fromAreaUnit(AreaUnit areaUnit)
Creates a linear unit given an area unit.
factory

Properties

abbreviation → String
The abbreviation of the unit.
no setterinherited
displayName → String
The display name of the unit.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
linearUnitId → LinearUnitId
The LinearUnitId of the given Linear unit.
no setter
name → String
The name of the unit.
no setterinherited
pluralDisplayName → String
The display name of the unit.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
wkid → int
The well-known ID for the unit, or 0 for a custom unit.
no setterinherited

Methods

convertFrom({required LinearUnit fromUnit, required double value}) → double
Converts a value in another UOM into this UOM.
convertTo({required LinearUnit toUnit, required double value}) → double
Converts a value in this UOM into another UOM.
fromMeters(double value) → double
Converts a meter value to this UOM.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMeters({required double value}) → double
Converts a value in this UOM to meters.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited