TimeList constructor

TimeList({
  1. Key? key,
  2. double padding = 0,
  3. required int timeStep,
  4. required TimeOfDay firstTime,
  5. required TimeOfDay lastTime,
  6. required TimeSelectedCallback onHourSelected,
  7. TimeOfDay? initialTime,
  8. Color? borderColor,
  9. Color? activeBorderColor,
  10. Color? backgroundColor,
  11. Color? activeBackgroundColor,
  12. TextStyle? textStyle,
  13. TextStyle? activeTextStyle,
  14. 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);