DateRangePicker constructor

const DateRangePicker({
  1. Key? key,
  2. DateTimeRange<DateTime>? initialDateRange,
  3. required DateTime firstDate,
  4. required DateTime lastDate,
  5. DateTime? currentDate,
  6. String? restorationId,
  7. Color? intervalColor,
  8. Color? selectedColor,
  9. Color? selectedTextColor,
  10. Color? enableTextColor,
  11. Color? disableTextColor,
  12. TextStyle? monthTextStyle,
  13. double? monthHeaderItemHeight,
  14. Color? monthHeaderColor,
  15. Color? backgroundColor,
  16. DateRangePickerController? controller,
  17. ValueChanged<DateTimeRange<DateTime>?>? onDateTimeRangeChanged,
  18. bool isShowToday = true,
  19. BoxShape selectedShape = BoxShape.circle,
})

Implementation

const DateRangePicker({
  super.key,
  this.initialDateRange,
  required this.firstDate,
  required this.lastDate,
  this.currentDate,
  this.restorationId,
  this.intervalColor,
  this.selectedColor,
  this.selectedTextColor,
  this.enableTextColor,
  this.disableTextColor,
  this.monthTextStyle,
  this.monthHeaderItemHeight,
  this.monthHeaderColor,
  this.backgroundColor,
  this.controller,
  this.onDateTimeRangeChanged,
  this.isShowToday = true,
  this.selectedShape = BoxShape.circle,
});