Unit<K extends PhysicalProperty<K> > class
Unit of a physical property.
Expressed with a symbol in a systemOfUnits for its kind of PhysicalProperty (volume, mass, legnth, etc).
Provides access to a QuantityConverter
to another Unit of the same kind of PhysicalProperty.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
kind
→ PhysicalProperty<
PhysicalProperty> -
no setter
- name → String
-
final
-
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
- stringify → bool?
-
If set to
true
, the toString method will be overridden to output this instance's props.no setterinherited - symbol → String
-
final
-
systemOfUnits
→ SystemOfUnits<
K> -
final
Methods
-
cacheConverter(
Unit< PhysicalProperty> unit, QuantityConverter converter) → QuantityConverter -
cachedConverter(
Unit< PhysicalProperty> unit) → QuantityConverter? -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
quantityConverterTo(
Unit< K> newUnit) → QuantityConverter - Compose a QuantityConverter function to convert amounts to another unit.
-
sameKind(
Unit< PhysicalProperty> unit) → bool - Compare if another unit is of the same kind
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited