TemperatureSystemOfUnits class
Constructors
- TemperatureSystemOfUnits({required Temperature kind})
Properties
-
baseUnit
→ Unit<
Temperature> -
Getter for this System of Units base unit
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- kind → Temperature
-
PhysicalProperty of the units registered in this System of Units
finalinherited
- name → String
-
Name of this System of Units ("International System of Units", "Imperial System of Units")
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
unitConverter
→ UnitConverter<
Temperature> -
UnitConverter optimized for units in this System of Units
finalinherited
-
units
→ List<
Unit< Temperature> > -
List all units in this SystemOUnits
no setterinherited
Methods
-
baseUnitConverterTo(
SystemOfUnits< Temperature> anotherSystem) → QuantityConverter -
Compose a QuantityConverter function to convert amounts from one SystemOfUnits baseUnit to another SystemOfUnits baseUnit
inherited
-
conversionFactor(
{required Unit< Temperature> fromUnit, required Unit<Temperature> toUnit}) → double -
Returns the conversionFactor between two units of this SystemOfUnits
inherited
-
defineBaseUnit(
{required String symbol, required String name, required double factor}) → Unit< Temperature> -
Define the baseUnit for this System of Units with its conversionFactor to the first
System of Units of its Physical Property, allowing inter-systems unit conversions.
inherited
-
defineUnit(
{required String symbol, required String name, double factor = 1.0}) → Unit< Temperature> -
Defines a unit with symbol and registers it in this System of Units
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
quantityConverter(
{required Unit< Temperature> fromUnit, required Unit<Temperature> toUnit}) → QuantityConverter -
Compose a QuantityConverter function to convert amounts from one unit to another
inherited
-
registerUnit(
Unit< Temperature> unit) → void -
Register (store) a unit in this System of Units.
inherited
-
sameKind(
SystemOfUnits< PhysicalProperty> otherSystem) → bool -
Compare two System of Units to verify if they are for the same PhysicalProperty
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
unitWith(
{required String symbol}) → Unit< Temperature> ? -
Finds an unit by its symbol. Retuns null if none is found
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited