lib/utils library

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
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