leftStringAtIndex method
Implementation
String? leftStringAtIndex(int index) {
DateTime time = currentTime.add(Duration(days: index));
if (minTime != null &&
time.isBefore(minTime!) &&
!isAtSameDay(minTime, time)) {
return null;
} else if (maxTime != null &&
time.isAfter(maxTime!) &&
!isAtSameDay(maxTime, time)) {
return null;
}
return formatDate(time, [ymdw], locale);
}