SmartDateRangePicker constructor

const SmartDateRangePicker({
  1. Key? key,
  2. required DateTime minDate,
  3. required DateTime maxDate,
  4. required int maxRangeDays,
  5. required ValueChanged<DateTimeRange<DateTime>> onChanged,
  6. SmartDateTimeTheme theme = const SmartDateTimeTheme(),
  7. Color surfaceColour = Colors.white,
  8. bool allowPastMonths = true,
})

Implementation

const SmartDateRangePicker({
  super.key,
  required this.minDate,
  required this.maxDate,
  required this.maxRangeDays,
  required this.onChanged,
  this.theme = const SmartDateTimeTheme(),
  this.surfaceColour = Colors.white,
  this.allowPastMonths = true,
});