SmartDateTimeRangePicker constructor

const SmartDateTimeRangePicker({
  1. Key? key,
  2. required DateTime minDate,
  3. required DateTime maxDate,
  4. required int maxRangeDays,
  5. required ValueChanged<DateTimeRange<DateTime>> onChanged,
  6. List<int> minuteSteps = const [0, 15, 30, 45],
  7. List<InlineSpan>? calendarLabel,
  8. List<InlineSpan>? startTimeLabel,
  9. List<InlineSpan>? endTimeLabel,
  10. SmartDateTimeTheme theme = const SmartDateTimeTheme(),
  11. Color surfaceColour = Colors.white,
  12. bool allowPastMonths = true,
})

Implementation

const SmartDateTimeRangePicker({
  super.key,
  required this.minDate,
  required this.maxDate,
  required this.maxRangeDays,
  required this.onChanged,
  this.minuteSteps = const [0, 15, 30, 45],
  this.calendarLabel,
  this.startTimeLabel,
  this.endTimeLabel,
  this.theme = const SmartDateTimeTheme(),
  this.surfaceColour = Colors.white,
  this.allowPastMonths = true,
});