WeightTransformation class
A transformation to convert a Weight to a human-readable String by using a WeightFormat.
See also:
- Inheritance
-
- Object
- Transformation<
Weight, String> - WeightTransformation
- Available Extensions
Constructors
-
WeightTransformation({String pattern = defaultValuePattern, Set<
WeightUnit> permissibleValueUnits = WeightUnits.commonSi}) -
Creates a WeightTransformation that will format values using the specified pattern, only using
permissibleValueUnits.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- pattern → String
-
The pattern passed through to the WeightFormat.
final
-
permissibleValueUnits
→ Set<
WeightUnit> -
The permissible value units.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
transform(
Weight input, String locale) → String -
Transforms
input
into an instance ofU
using the providedlocale
.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited