TimeList constructor
TimeList({
- Key? key,
- double padding = 0,
- required int timeStep,
- required TimeOfDay firstTime,
- required TimeOfDay lastTime,
- required TimeSelectedCallback onHourSelected,
- TimeOfDay? initialTime,
- Color? borderColor,
- Color? activeBorderColor,
- Color? backgroundColor,
- Color? activeBackgroundColor,
- TextStyle? textStyle,
- TextStyle? activeTextStyle,
- bool alwaysUse24HourFormat = false,
Implementation
TimeList({
Key? key,
this.padding = 0,
required this.timeStep,
required this.firstTime,
required this.lastTime,
required this.onHourSelected,
this.initialTime,
this.borderColor,
this.activeBorderColor,
this.backgroundColor,
this.activeBackgroundColor,
this.textStyle,
this.activeTextStyle,
this.alwaysUse24HourFormat = false,
}) : assert(
lastTime.afterOrEqual(firstTime),
'lastTime not can be before firstTime',
),
super(key: key);