UnitsConverter class final

An ICU4X Units Converter object, capable of converting between two MeasureUnits.

You can create an instance of this object using UnitsConverterFactory by calling the converter method.

See the Rust documentation for UnitsConverter for more information.

Implemented types

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clone() UnitsConverter
Clones the current UnitsConverter object.
convertDouble(double value) double
Converts the input value from the input unit to the output unit (that have been used to create this converter). NOTE: The conversion using floating-point operations is not as accurate as the conversion using ratios.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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