TimePickerComponent constructor
TimePickerComponent({})
Creates a TimePickerComponent.
hour and minute set the initial time.
onChanged is called whenever the selected time changes.
minuteStep controls the minute increment (default 15).
Implementation
TimePickerComponent({
required int hour,
required int minute,
required this.onChanged,
this.minuteStep = 15,
Vector2? size,
Vector2? position,
this.style,
this.selectedStyle,
}) : _hour = hour,
_minute = minute,
super(
size: size ?? Vector2(60, 36),
position: position ?? Vector2.zero(),
);