lib/utils
library
Functions
-
generateHours(int divisions, dynamic min, dynamic max)
→ List<int?>
-
Generate a List of hours
-
generateMinutesOrSeconds(int divisions, TimePickerInterval? interval, dynamic min, dynamic max)
→ List<int?>
-
Generate a List of minutes
-
getDivisions(int diff, TimePickerInterval? interval)
→ int
-
Map MinuteInterval enum to division values
-
getIntFromTimePickerIntervalEnum(TimePickerInterval? interval)
→ int
-
-
getMax(double? maxMinute, TimePickerInterval? interval)
→ double
-
Get the maximum minute from interval
-
getMin(double? minMinute, TimePickerInterval? interval)
→ double
-
Get the minimum minute from interval
-
mapRange(double value, double iMin, double iMax, [double oMin = 0, double oMax = 1])
→ double
-
Map a given value between a range
-
timeOfDayToDouble(TimeOfDay myTime)
→ double
-
Convert TimeOfDay to double for comparison