UnitOfMeasurementRate<TValue extends UnitOfMeasurement> class abstract

Base class for a unit of measurement rate.

A unit of measurement rate is the combination of a unit of measurement value and a period that indicates how often that value is occurring or compounding.

Implementers

Constructors

UnitOfMeasurementRate({required TValue value, required Duration period})
Creates a unit of measurement rate with the specified value and period.
const

Properties

hashCode int
The hash code for this object.
no setteroverride
period Duration
How often the value is occurring.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value → TValue
The underlying unit of measurement value.
final

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.
override