DateRangePicker constructor
const
DateRangePicker({
- Key? key,
- DateTimeRange<
DateTime> ? initialDateRange, - required DateTime firstDate,
- required DateTime lastDate,
- DateTime? currentDate,
- String? restorationId,
- Color? intervalColor,
- Color? selectedColor,
- Color? selectedTextColor,
- Color? enableTextColor,
- Color? disableTextColor,
- TextStyle? monthTextStyle,
- double? monthHeaderItemHeight,
- Color? monthHeaderColor,
- Color? backgroundColor,
- DateRangePickerController? controller,
- ValueChanged<
DateTimeRange< ? onDateTimeRangeChanged,DateTime> ?> - bool isShowToday = true,
- 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,
});