leftStringAtIndex method

  1. @override
String? leftStringAtIndex(
  1. int index
)
override

Implementation

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