view property Null safety

CalendarView view
final

Defines the view for the SfCalendar.

Defaults to CalendarView.day.

Also refer: CalendarView.

Widget build(BuildContext context) {
   return Container(
     child: SfCalendar(
       view: CalendarView.day,
     ),
   );
 }

Implementation

final CalendarView view;