LengthUnit class Null safety

Constructors

LengthUnit(double scaleFactor)
const

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
scaleFactor double
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
to(LengthUnit unit, num value) double
toString() String
A string representation of this object.
inherited

Operators

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

Constants

Centimeter → const LengthUnit
const LengthUnit(100.0)
Kilometer → const LengthUnit
const LengthUnit(0.001)
Meter → const LengthUnit
const LengthUnit(1.0)
Mile → const LengthUnit
const LengthUnit(0.0006213712)
Millimeter → const LengthUnit
const LengthUnit(1000.0)