Ratio class
A relationship of two Quantity values - expressed as a numerator and a denominator.
Constructors
Properties
- denominator → Quantity?
-
The value of the denominator in the ratio.
no setter
- hashCode → int
-
The hash code for this object.
no setteroverride
- json → JsonObject
-
Converts this Ratio instance to a JSON object.
no setter
- numerator → Quantity?
-
The value of the numerator in the ratio.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{Quantity? numerator, Quantity? denominator}) → Ratio - Creates a deep copy of this Ratio.
-
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
Constants
-
denominatorField
→ const FieldDefinition<
Quantity> - Field definition for denominator
-
fieldDefinitions
→ const List<
FieldDefinition< Quantity> > - All field definitions for Ratio
-
numeratorField
→ const FieldDefinition<
Quantity> - Field definition for numerator