BaseUnit class
The building blocks on top of which all others units are created.
Base units are typically dimensionally independent. The actual unit dimension is determinated by the current DimensionalModel.
Properties
- dimension → Dimension
-
The dimension of this unit.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setteroverride
- isStandardUnit → bool
-
Indicates if this unit is a standard unit.
no setterinherited
- quantity → Quantity
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- standardUnit → BaseUnit
-
////////////////////////////////////////////////
////////////////////////////////////////////////
The BaseUnit base unit, AlternateUnit alternate unit or product of
base units and alternate units this unit is derived from.
no setteroverride
- symbol → String
-
The unique symbol for this base unit
final
Methods
-
divide(
Unit that) → Unit -
The quotient of this unit with the one specified.
inherited
-
getConverterTo(
Unit that) → UnitConverter -
Returns a converter of numeric values from this unit to another unit.
inherited
-
inverse(
) → Unit -
The inverse of this unit.
inherited
-
isCompatible(
Unit that) → bool -
Indicates if this unit is compatible with the unit specified.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
plus(
num offset) → Unit -
The result of adding an offset to this unit.
inherited
-
pow(
RationalNumber pow) → Unit -
inherited
-
scaled(
num factor, [num divisor = 1]) → Unit -
The result of multiplying this unit by a factor.
inherited
-
times(
Unit that) → Unit -
The product of this unit with the one specified.
inherited
-
toStandardUnit(
) → UnitConverter -
Returns the converter from this unit to its standard unit.
override
-
toString(
) → String -
A string representation of this object.
inherited
-
transform(
UnitConverter operation) → Unit -
Returns the unit derived from this unit using the specified converter.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override