BookingRangeSlider constructor

const BookingRangeSlider({
  1. Key? key,
  2. Color unavailableColor = _defaultColorRed,
  3. Color availableColor = _defaultColorGreen,
  4. Color selectedColor = _defaultColorSelected,
  5. bool displayHandles = true,
  6. bool displayLabels = true,
  7. bool highlightSelected = true,
  8. TextStyle labelStyle = _defaultLabelStyle,
  9. TimeOfDay labelFrequency = const TimeOfDay(hour: 4, minute: 0),
  10. TimeOfDay initialTime = const TimeOfDay(hour: 0, minute: 0),
  11. TimeOfDay endingTime = const TimeOfDay(hour: 0, minute: 0),
  12. TimeOfDay division = const TimeOfDay(hour: 0, minute: 30),
  13. required ValueChanged<BookingValues>? onChanged,
  14. required List<BookingValues> values,
})

Implementation

const BookingRangeSlider({
  Key? key,
  this.unavailableColor = _defaultColorRed,
  this.availableColor = _defaultColorGreen,
  this.selectedColor = _defaultColorSelected,
  this.displayHandles = true,
  this.displayLabels = true,
  this.highlightSelected = true,
  this.labelStyle = _defaultLabelStyle,
  this.labelFrequency = const TimeOfDay(hour: 4, minute: 0),
  this.initialTime = const TimeOfDay(hour: 0, minute: 0),
  this.endingTime = const TimeOfDay(hour: 0, minute: 0),
  this.division = const TimeOfDay(hour: 0, minute: 30),
  required this.onChanged,
  required this.values,
}) : super(key: key);