InformationRateTransformation class
A transformation to convert an InformationRate to a human-readable String by using an InformationRateFormat.
See also:
- Inheritance
-
- Object
- Transformation<
InformationRate, String> - InformationRateTransformation
- Available Extensions
Constructors
-
InformationRateTransformation({String pattern = defaultRatePattern, Set<
InformationUnit> permissibleValueUnits = InformationUnits.iecBytes, Set<RateUnit> permissibleRateUnits = RateUnits.hourOrLess}) -
Creates an InformationRateTransformation that will format values using the specified pattern, only using
permissibleValueUnits and permissibleRateUnits.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- pattern → String
-
The pattern passed through to the InformationRateFormat.
final
-
permissibleRateUnits
→ Set<
RateUnit> -
The permissible rate units.
final
-
permissibleValueUnits
→ Set<
InformationUnit> -
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(
InformationRate input, String locale) → String -
Transforms
input
into an instance ofU
using the providedlocale
.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited