DatePicker constructor
const
DatePicker({
- Key? key,
- required DateTime selected,
- ValueChanged<
DateTime> ? onChanged, - VoidCallback? onCancel,
- String? header,
- TextStyle? headerStyle,
- bool showDay = true,
- bool showMonth = true,
- bool showYear = true,
- int? startYear,
- int? endYear,
- EdgeInsetsGeometry contentPadding = kPickerContentPadding,
- double popupHeight = kPopupHeight,
- MouseCursor cursor = SystemMouseCursors.click,
- FocusNode? focusNode,
- bool autofocus = false,
Implementation
const DatePicker({
Key? key,
required this.selected,
this.onChanged,
this.onCancel,
this.header,
this.headerStyle,
this.showDay = true,
this.showMonth = true,
this.showYear = true,
this.startYear,
this.endYear,
this.contentPadding = kPickerContentPadding,
this.popupHeight = kPopupHeight,
this.cursor = SystemMouseCursors.click,
this.focusNode,
this.autofocus = false,
}) : super(key: key);