jumpToDayPicker method

void jumpToDayPicker([
  1. DateTime? date
])

Shows the day grid 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 (!_wheel && day.controller.hasClients) {
    day.jumpTo(target);
  } else {
    _wheel = false;
    day.reattach(target);
    _currentMonth = day.current;
    notifyListeners();
  }
}