setCurrentMonth method

void setCurrentMonth(
  1. DateTime target,
  2. SelectType type
)

Implementation

void setCurrentMonth(DateTime target, SelectType type) {
  if (target.year == year && target.month == month) {
    dates.singleWhere((date) => date.date == target.day).isSelected = type;
  }
}