RationalConverter class

A converter multiplying numeric values by an exact scaling factor (represented as the quotient of two integers.

Inheritance

Properties

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

Methods

concatenate(UnitConverter converter) UnitConverter
Concatenates this converter with another converter.
override
convert(double amount) double
Converts a double value.
override
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.
override