GlassDatePicker constructor

const GlassDatePicker({
  1. Key? key,
  2. DateTime? initialDate,
  3. required ValueChanged<DateTime>? onDateTimeChanged,
  4. int minimumYear = 1900,
  5. int maximumYear = 2100,
  6. double height = _defaultHeight,
  7. String? semanticLabel,
  8. FocusNode? focusNode,
  9. bool autofocus = false,
})

Creates a date picker; minimumYear must not be after maximumYear.

Implementation

const GlassDatePicker({
  super.key,
  this.initialDate,
  required this.onDateTimeChanged,
  this.minimumYear = 1900,
  this.maximumYear = 2100,
  this.height = _defaultHeight,
  this.semanticLabel,
  this.focusNode,
  this.autofocus = false,
}) : assert(minimumYear <= maximumYear);