DatePicker constructor

const DatePicker({
  1. Key? key,
  2. required DateTime selected,
  3. ValueChanged<DateTime>? onChanged,
  4. VoidCallback? onCancel,
  5. String? header,
  6. TextStyle? headerStyle,
  7. bool showDay = true,
  8. bool showMonth = true,
  9. bool showYear = true,
  10. int? startYear,
  11. int? endYear,
  12. EdgeInsetsGeometry contentPadding = kPickerContentPadding,
  13. double popupHeight = kPopupHeight,
  14. MouseCursor cursor = SystemMouseCursors.click,
  15. FocusNode? focusNode,
  16. 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);