DatePicker constructor
const
DatePicker({
- Key? key,
- required DateTime? value,
- ValueChanged<
DateTime?> ? onChanged, - Widget? placeholder,
- PromptMode mode = PromptMode.dialog,
- CalendarView? initialView,
- AlignmentGeometry? popoverAlignment,
- AlignmentGeometry? popoverAnchorAlignment,
- EdgeInsetsGeometry? popoverPadding,
- Widget? dialogTitle,
- CalendarViewType? initialViewType,
- DateStateBuilder? stateBuilder,
Implementation
const DatePicker({
super.key,
required this.value,
this.onChanged,
this.placeholder,
this.mode = PromptMode.dialog,
this.initialView,
this.popoverAlignment,
this.popoverAnchorAlignment,
this.popoverPadding,
this.dialogTitle,
this.initialViewType,
this.stateBuilder,
});