Distance class

A scalar representing distance

Implemented types
Annotations

Constructors

Distance({required double value, required DistanceUnit unit})
Creates a Distance instance
const

Properties

hashCode → int
The hash code for this object.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
unit → DistanceUnit
The unit of measurement for this scalar.
final
value → double
The numeric value of the scalar measurement.
final

Methods

compareTo(Scalar other) → int
Compares this object to another object.
override
label(BuildContext context) → String
Returns a localized label value and unit for the scalar.
override
labelValue(BuildContext context) → String
Returns the numeric value formatted for labeling.
override
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