leftStringAtIndex method

String? leftStringAtIndex(
  1. int index
)

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);
}