setLeftIndex method
Implementation
@override
void setLeftIndex(int index) {
super.setLeftIndex(index);
DateTime time = currentTime.add(Duration(days: index));
if (isAtSameDay(minTime, time)) {
var index = min(24 - minTime!.hour - 1, _currentMiddleIndex);
setMiddleIndex(index);
} else if (isAtSameDay(maxTime, time)) {
var index = min(maxTime!.hour, _currentMiddleIndex);
setMiddleIndex(index);
}
}