setCurrentDate method

void setCurrentDate(
  1. DateTime date
)

Set the current date of the calendar: will go to the correct page

Implementation

void setCurrentDate(DateTime date) {
  setState(() {
    final int page = _getPageForDate(date);
    controller.jumpToPage(page);
  });
}