MultiplyConverter class

Converter that multiplies values by a constant factor.

Inheritance

Constructors

MultiplyConverter(num factor)

Properties

a → num
"a" constant
finalinherited
b → num
"b" constant
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
inverted → UnitConverter
The inverse converter.
no setterinherited
isIdentity → bool
Unit has scale info?
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

add(num value) → UnitConverter
Composes this converter with an additive offset.
inherited
apply(num x) → num
Converts value to the reference unit.
inherited
composeWith(UnitConverter other) → UnitConverter
Composes this converter with other.
inherited
divide(num value) → UnitConverter
Composes this converter with the inverse of value.
inherited
multiply(num value) → UnitConverter
Composes this converter with a multiplicative factor.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pow(int exp) → UnitConverter
Raises this converter to exp.
inherited
toString() → String
A string representation of this object.
inherited
undo(num value) → num
Applies the inverse converter to value.
inherited

Operators

operator *(UnitConverter other) → UnitConverter
Alias for composeWith.
inherited
operator /(UnitConverter other) → UnitConverter
Alias for composition using the inverse of other.
inherited
operator ==(Object other) → bool
The equality operator.
inherited