TimePicker constructor

TimePicker(
  1. Element element, {
  2. String? time,
  3. DateTime? date,
  4. int? step,
  5. int? maxHour = 24,
  6. bool? enable24HourTime,
  7. bool? enableSecond,
  8. bool? enableDefaultEmpty,
})

Construct a TimePicker object, wired to element. *

    • time - the time displayed on input, legal format: '12:25'
    • step - specify a step for the minute field.

Implementation

factory TimePicker(Element element, {
    String? time, DateTime? date, int? step, int? maxHour = 24,
    bool? enable24HourTime, bool? enableSecond, bool? enableDefaultEmpty})
  => _TimePickerImpl(element, time: time, date: date,
      step: step, maxHour: maxHour,
      enableSecond: enableSecond,
      enable24HourTime: enable24HourTime,
      enableDefaultEmpty: enableDefaultEmpty,
  );