UnitType enum

An emum used to designate which type of number a particular unit is for unit conversion purposes.

This is a custom enum that has been added by this package and is not part of the CSAFE specification.

You may get an unsolicited physics lesson by reading the documentation for this enum. You have been warned.

Inheritance

Constructors

UnitType()
const

Values

mass → const UnitType
distance → const UnitType
time → const UnitType
speed → const UnitType

Represents units of distance over time

energy → const UnitType

represents units of energy (i.e. calorie)

power → const UnitType

Represents units of energy over time (i.e. Calories per hour)

force → const UnitType
frequency → const UnitType

Represents "dimensionless" units, such as counts applied over time (i.e. steps per minute)

dimensionless → const UnitType

Represents a unit that has "no physical dimension i.e. time asssigned".

examples include counts of things (i.e. beats, steps, strokes) as well as ratios where the units cancel out (i.e. percent grade)

See also: https://en.wikipedia.org/wiki/Dimensionless_quantity

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
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

Operators

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

Constants

values → const List<UnitType>
A constant List of the values in this enum, in order of their declaration.