view property

DateRangePickerView view

Defines the view for the SfDateRangePicker.

Default to DateRangePickerView.month.

Note: If the controller and it's controller.view property is not null, then this property will be ignored and widget will display the view described in controller.view property.

See also:

Widget build(BuildContext context) {
   return MaterialApp(
     home: Scaffold(
       body: SfDateRangePicker(
         view: DateRangePickerView.year,
         minDate: DateTime(2019, 02, 05),
         maxDate: DateTime(2021, 12, 06),


final DateRangePickerView view;