Unit class abstract

Base class used to create units for mass, energy, etc.

Constructors

Unit(double value, double converter, String symbol)

Properties

converter double
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
symbol String
getter/setter pair
value double
getter/setter pair

Methods

division(Unit divide) double
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
plus(Unit? add) Unit
times(double mult) Unit
toString() String
A string representation of this object.
inherited

Operators

operator *(double mult) Unit
operator +(UnitMass? add) Unit
operator /(UnitMass divide) double
operator ==(Object other) bool
The equality operator.
inherited