initialDisplayDate property

DateTime initialDisplayDate
final

The initial date to show on the SfDateRangePicker

The SfDateRangePicker will display the dates based on the date set in this property.

Defaults to current date.

Note: If the controller and it's controller.displayDate property is not null then this property will be ignored and the widget render the dates based on the date given in controller.displayDate.

See also:


Widget build(BuildContext context) {
   return MaterialApp(
     home: Scaffold(
       body: SfDateRangePicker(
         view: DateRangePickerView.month,
         initialDisplayDate: DateTime(2025, 02, 05),
       ),
     ),
   );
 }

Implementation

final DateTime initialDisplayDate;