operator / method
Implementation
DistanceUnit operator /(double value) {
return when(
cm: (value) => Centimeter(value / value),
inch: (value, _) => Inch(value / value),
);
}
DistanceUnit operator /(double value) {
return when(
cm: (value) => Centimeter(value / value),
inch: (value, _) => Inch(value / value),
);
}