UnitConverter class abstract

A converter of numeric values.

It is not required for sub-classes to be immutable (e.g. currency converter).

Implementers

Constructors

UnitConverter.add(double offset)
const
factory
UnitConverter.log(double base)
const
factory
UnitConverter.multiply(double factor)
const
factory
UnitConverter.rationalMultiply(int factor, [int divisor = 1])
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
inverse UnitConverter
The inverse of this converter.
no setter
isLinear bool
Indicates if this converter is linear.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

concatenate(UnitConverter converter) UnitConverter
Concatenates this converter with another converter.
convert(double x) double
Converts a double value.
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 cvtr) bool
The equality operator.
override

Constants

identity → const UnitConverter
The identity converter (unique).