TimeLinePicker constructor
TimeLinePicker({
- Key? key,
- required DateTime startDate,
- required int endDay,
- required int selectedDay,
- required ValueChanged<
DateTime> onChanged, - required Widget dayBuilder(),
- required Widget monthBuilder(
- DateTime month
- int itemCount = 3,
- double itemHeight = 150,
- double itemWidth = 100,
- Axis axis = Axis.vertical,
- bool haptics = false,
- TextMapper? textMapper,
- bool infiniteLoop = false,
- Duration selectedTimeDelay = const Duration(seconds: 8),
Implementation
TimeLinePicker({
super.key,
required this.startDate,
required this.endDay,
required this.selectedDay,
required this.onChanged,
required this.dayBuilder,
required this.monthBuilder,
this.itemCount = 3,
this.itemHeight = 150,
this.itemWidth = 100,
this.axis = Axis.vertical,
this.haptics = false,
this.textMapper,
this.infiniteLoop = false,
this.selectedTimeDelay = const Duration(seconds: 8),
}) : assert(endDay > 0),
assert(endDay >= selectedDay) {
value = selectedDay;
}