DateTimePicker constructor
DateTimePicker({
- Key? key,
- PickerOptions<
DateTime> ? options, - WheelOptions? wheelOptions,
- double height = kPickerDefaultHeight,
- double width = double.infinity,
- double? itemWidth,
- DateTimePickerUnit unit = const DateTimePickerUnit.all(),
- bool dual = true,
- DateTimePickerContentBuilder? itemBuilder,
- DateTimePickerChanged? onChanged,
- DateTime? startDate,
- DateTime? defaultDate,
- DateTime? endDate,
Implementation
DateTimePicker({
super.key,
super.options,
super.wheelOptions,
super.height = kPickerDefaultHeight,
super.width = double.infinity,
super.itemWidth,
this.unit = const DateTimePickerUnit.all(),
this.dual = true,
this.itemBuilder,
this.onChanged,
DateTime? startDate,
DateTime? defaultDate,
DateTime? endDate,
}) : startDate =
startDate ?? DateTime.now().subtract(const Duration(days: 1)),
defaultDate = defaultDate ?? DateTime.now(),
endDate = endDate ?? DateTime.now();