NumberExtensions extension Null safety
Properties
- to2Dp → String
-
Returns double to two decimal places
read-only
- withLeadingZero → String
-
Ensure double digits
read-only
Methods
-
averageWith(
{required num previous, required int count}) → double -
Calculates the average for the provided number using the
previous
value and thecount
of items -
inRange(
num from, num to, {bool startInclusive = true, dynamic endInclusive = true}) → bool -
Is the current number in the range
from
toto
, mutually inclusive