Mass class

Represents base quantity Mass

Inheritance

Constructors

Mass(num value, String unitSymbol)
Constructs Mass with the value and the unit
Mass.si(num siValue)
Constructs Mass with the value in SI base unit
const

Properties

baseDimension → BaseDimension<Mass>
Base dimension of this quantity
finalinherited
dimension → Dimension<Mass>
Dimension of this quantity
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
props List<Object>
The list of properties that will be used to determine whether two instances are equal.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
siValue num
value in SI unit of this quantity
finalinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
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
valueIn(String unitSymbol) num
Returns the value of this quantity in unitSymbol unit
inherited

Operators

operator +(Mass q) Mass
Add operator
inherited
operator -(Mass q) Mass
Subtract operator
inherited
operator <(Mass q) bool
Less than operator
inherited
operator <=(Mass q) bool
Less than or equal operator
inherited
operator ==(Object other) bool
The equality operator.
inherited
operator >(Mass q) bool
Greater than operator
inherited
operator >=(Mass q) bool
Greater than or equal operator
inherited