initialSelectedDate property Null safety

DateTime? initialSelectedDate
final

The date to initially select on the SfCalendar.

The SfCalendar will select the date that set to this property.

Defaults to null.


Widget build(BuildContext context) {
   return Container(
     child: SfCalendar(
       view: CalendarView.week,
       initialSelectedDate: DateTime(2019, 12, 12, 11, 0, 0),
     ),
  );
 }

Implementation

final DateTime? initialSelectedDate;