AlternateUnit class
The units used in expressions to distinguish between quantities of a different nature but of the same dimensions.
- Inheritance
-
- Object
- Unit
- DerivedUnit
- AlternateUnit
Constructors
- AlternateUnit(String symbol, Unit parent, [Quantity? _quantity])
-
const
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
- parent → Unit
-
The parent unit from which this alternate unit is derived
final
- quantity → Quantity
-
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- standardUnit → AlternateUnit
-
////////////////////////////////////////////////
////////////////////////////////////////////////
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 symbol for this alternate 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