TransformedUnit class

Units derived from other units using a UnitConverter.

Inheritance

Constructors

TransformedUnit(Unit parentUnit, UnitConverter toParentUnit)
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
parentUnit Unit
The parent unit for this unit.
final
quantity Quantity
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
standardUnit Unit
//////////////////////////////////////////////// //////////////////////////////////////////////// The BaseUnit base unit, AlternateUnit alternate unit or product of base units and alternate units this unit is derived from.
no setteroverride
toParentUnit UnitConverter
The converter to the parent 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