scrollToSelectedItem method

void scrollToSelectedItem([
  1. bool isEnableAnimation = true
])

scroll to current selected date's position isEnableAnimation default set as true, jump with animation

Implementation

void scrollToSelectedItem([bool isEnableAnimation = true]) {
  if (realStartDate != null && selectedDate != null) {
    int index = selectedDate!.difference(realStartDate!).inDays;
    _scrollToSpecificDateByIndex(index);
  }
}