UnitSymbol class

Canonical representation for unit symbols.

It normalizes products, divisions and powers by collapsing repeated terms into exponents and keeping denominator terms on the right side.

Constructors

UnitSymbol.parse(String source)
factory

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

divide(UnitSymbol other) → UnitSymbol
Divide current symbol to other and returns a new one
multiply(UnitSymbol other) → UnitSymbol
Multiply current symbol to other and returns a new one
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pow(int exp) → UnitSymbol
Pows current symbol
toString() → String
A string representation of this object.
override

Operators

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