CalendarPlusController constructor Null safety

CalendarPlusController(
  1. {DateTime? initialDate}
)

Implementation

factory CalendarPlusController({DateTime? initialDate}) {
  final initialPage = initialDate != null
      ? _dateToPage(initialDate) + defaultOffset
      : defaultOffset;

  return CalendarPlusController._(
    initialPage: initialPage,
    initialDate: initialDate ?? DateTime.now(),
  );
}