Quantity<Q extends Quantity<Q> > class
abstract
Superclass of all quantities
Constructors
-
Quantity(num value, String unitSymbol, Dimension<
Q> dimension) - Constructs a quantity with the value and the unit
-
Quantity.si(num siValue, [Dimension<
Q> ? _dimension]) -
Constructs a quantity with the value in SI unit
const
Properties
-
dimension
→ Dimension<
Q> -
Dimension of this quantity
no setter
- 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 setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- siValue → num
-
value in SI unit of this quantity
final
- 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.
override
-
valueIn(
String unitSymbol) → num -
Returns the value of this quantity in
unitSymbol
unit
Operators
-
operator +(
Q q) → Q - Add operator
-
operator -(
Q q) → Q - Subtract operator
-
operator <(
Q q) → bool - Less than operator
-
operator <=(
Q q) → bool - Less than or equal operator
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator >(
Q q) → bool - Greater than operator
-
operator >=(
Q q) → bool - Greater than or equal operator