GlassTimePicker constructor

const GlassTimePicker({
  1. Key? key,
  2. DateTime? initialTime,
  3. required ValueChanged<DateTime>? onDateTimeChanged,
  4. bool use24hFormat = false,
  5. int minuteInterval = 1,
  6. double height = _defaultHeight,
  7. String? semanticLabel,
  8. FocusNode? focusNode,
  9. bool autofocus = false,
})

Creates a time picker; minuteInterval must divide 60.

Implementation

const GlassTimePicker({
  super.key,
  this.initialTime,
  required this.onDateTimeChanged,
  this.use24hFormat = false,
  this.minuteInterval = 1,
  this.height = _defaultHeight,
  this.semanticLabel,
  this.focusNode,
  this.autofocus = false,
}) : assert(minuteInterval > 0 && 60 % minuteInterval == 0, 'minuteInterval must divide 60.');