CalendarYear.fromTime constructor

CalendarYear.fromTime(
  1. DateTime time, {
  2. CalendarState? state,
  3. int startingWeekday = DateTime.monday,
})

Implementation

CalendarYear.fromTime(DateTime time,
    {CalendarState? state, int startingWeekday = DateTime.monday})
    : this(time.year, state, startingWeekday: startingWeekday);