MeasureFormatRegistry class

Registry for default measure formats by dimension.

Constructors

MeasureFormatRegistry()

Properties

hashCode int
The hash code for this object.
no setterinherited
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

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

clear() → void
Clears all registrations and restores the default format.
register<D extends Dimension>(MeasureFormat format) → void
Registers a format for dimension D.
resetDefault() → void
Restores the fallback default format.
resolve(Measure<Dimension> measure) MeasureFormat
Resolves the format for measure.
setDefault(MeasureFormat format) → void
Sets the fallback default format.
unregister<D extends Dimension>() → void
Removes the registered format for dimension D.