initialSelectedDate property

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.

See also:


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

Implementation

final DateTime? initialSelectedDate;