MetricPrefix class sealed

DECORATOR that scales base unit by a power. The beautiful thing about the SI system is its units. The consistency between moving from "1000 milligrams" to "1 gram" enables comprehension and broad usage. DECORATOR is a natural fit, as it enables composition across all SI base units with minimal duplication. Dart's Sealed Class and compile time enumeration is pretty cool here, enumerating types without forcing a SINGLE GIANT ENUM OF DOOM.

Implemented types
Implementers

Properties

hashCode int
The hash code for this object.
no setteroverride
power num
final
prefix String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
symbol String
no setteroverride
unit Unit
final

Methods

compareTo(MetricPrefix other) int
Compares this object to another object.
override
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.
override