DoubleNullableCheck extension
- on
Methods
-
check(
double? defaultValue) → double? -
Available on double?, provided by the DoubleNullableCheck extension
-
roundToIfCloseTo(
double defaultValue, {double epsilon = _defaultEpsilon}) → double -
Available on double?, provided by the DoubleNullableCheck extension
Ensure that this double? is withinepsilonofdefaultValue, otherwise return this double? (or defaultValue if this is null).