NumberExtensions extension Null safety

on

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 the count of items
inRange(num from, num to, {bool startInclusive = true, dynamic endInclusive = true}) bool
Is the current number in the range from to to, mutually inclusive