jumpToDayPicker method

void jumpToDayPicker([
  1. DateTime? date
])
inherited

Shows the day picker on the given date's month, or the current month if date is null.

Implementation

void jumpToDayPicker([DateTime? date]) {
  final target = _clamp(start, switch (date) {
    null => _currentMonth,
    final m => .utc(m.year, m.month),
  }, end);

  if (day.controller.hasClients) {
    day.jumpTo(target);
  } else {
    _reattach(day, .day, target);
  }
}