utils library Null safety

Functions

generateHours(int divisions, dynamic min, dynamic max) List<int?>
Generate a List of hours
generateMinutes(int divisions, MinuteInterval? interval, dynamic min, dynamic max) List<int?>
Generate a List of minutes
getHours(int? h, String? a, bool is24Hr) int?
Get the hour either in 12Hr or 24Hr format
getIntFromMinuteIntervalEnum(MinuteInterval? interval) int
getMaxMinute(double? maxMinute, MinuteInterval? interval) double
Get the maximum minute from interval
getMinMinute(double? minMinute, MinuteInterval? interval) double
Get the minimum minute from interval
getMinuteDivisions(int diff, MinuteInterval? interval) int
Map MinuteInterval enum to division values
mapRange(double value, double iMin, double iMax, [double oMin = 0, double oMax = 1]) double
Map a given value between a range
padNumber(int num) String
Padding single digit number to be double digit