DateRangePickerWidget constructor

const DateRangePickerWidget({
  1. Key? key,
  2. required ValueChanged<DateRange?> onDateRangeChanged,
  3. DateTime? initialDisplayedDate,
  4. int? minimumDateRangeLength,
  5. DateRange? initialDateRange,
  6. DateTime? minDate,
  7. DateTime? maxDate,
  8. CalendarTheme theme = kTheme,
  9. int? maximumDateRangeLength,
  10. List<DateTime> disabledDates = const [],
  11. List<QuickDateRange> quickDateRanges = const [],
  12. bool doubleMonth = true,
  13. double height = 429,
  14. required double leftWidth,
})

Implementation

const DateRangePickerWidget({
  Key? key,
  required this.onDateRangeChanged,
  this.initialDisplayedDate,
  this.minimumDateRangeLength,
  this.initialDateRange,
  this.minDate,
  this.maxDate,
  this.theme = kTheme,
  this.maximumDateRangeLength,
  this.disabledDates = const [],
  this.quickDateRanges = const [],
  this.doubleMonth = true,
  this.height = 429,///329
  required this.leftWidth,
}) : super(key: key);