CompoundConverter class
Converter that applies two converters in sequence.
- Inheritance
-
- Object
- UnitConverter
- CompoundConverter
Constructors
- CompoundConverter(UnitConverter first, UnitConverter second)
Properties
- first → UnitConverter
-
First converter
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- inverted → UnitConverter
-
The inverse converter.
no setteroverride
- isIdentity → bool
-
Whether this converter leaves values unchanged.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- second → UnitConverter
-
Second converter
final
Methods
-
add(
num value) → UnitConverter -
Composes this converter with an additive offset.
inherited
-
apply(
num value) → num -
Converts
valueto the reference unit.override -
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.override -
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