FTimePickerControl.lifted constructor

const FTimePickerControl.lifted({
  1. required FTime time,
  2. required ValueChanged<FTime> onChange,
  3. Duration duration,
  4. Curve curve,
})

Creates a FTimePickerControl for controlling time picker using lifted state.

It does not prevent the user from scrolling to invalid indexes. To animate back to the provided time, consider passing in onChange: (_) => setState(() {}).

The time parameter contains the current selected time. The onChange callback is invoked when the user selects a time. The duration when animating to time from an invalid/different time. Defaults to 200 milliseconds. The curve when animating to time from an invalid/different time. Defaults to Curves.easeOutCubic.

Implementation

const factory FTimePickerControl.lifted({
  required FTime time,
  required ValueChanged<FTime> onChange,
  Duration duration,
  Curve curve,
}) = _Lifted;