TimeList constructor

TimeList({
  1. Key? key,
  2. double? padding,
  3. required int timeStep,
  4. required TimeOfDay firstTime,
  5. required TimeOfDay lastTime,
  6. required void onHourSelected(
    1. TimeOfDay hour
    ),
  7. TimeOfDay? initialTime,
  8. Color? borderColor,
  9. Color? activeBorderColor,
  10. Color? backgroundColor,
  11. Color? activeBackgroundColor,
  12. TextStyle? textStyle,
  13. TextStyle? activeTextStyle,
})

Implementation

TimeList({
  Key? key,
  this.padding,
  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,
})  : assert(lastTime.after(firstTime), 'lastTime not can be before firstTime'),
      super(key: key);