WeekdaySelector constructor

WeekdaySelector(
  1. {Key? key,
  2. required ValueChanged<int>? onChanged,
  3. required List<bool?> values,
  4. List<String> shortWeekdays = defaultShortWeekdays,
  5. List<String> weekdays = defaultWeekdays,
  6. int firstDayOfWeek = defaultFirstDayOfWeek,
  7. TextDirection textDirection = defaultTextDirection,
  8. Set<int> displayedDays = defaultDisplayedDays,
  9. bool? enableFeedback,
  10. Color? color,
  11. Color? selectedColor,
  12. Color? disabledColor,
  13. Color? fillColor,
  14. Color? selectedFillColor,
  15. Color? disabledFillColor,
  16. double? elevation,
  17. double? selectedElevation,
  18. double? disabledElevation,
  19. Color? focusColor,
  20. Color? selectedFocusColor,
  21. Color? hoverColor,
  22. Color? selectedHoverColor,
  23. Color? splashColor,
  24. Color? selectedSplashColor,
  25. TextStyle? textStyle,
  26. TextStyle? selectedTextStyle,
  27. TextStyle? disabledTextStyle,
  28. ShapeBorder? shape,
  29. ShapeBorder? selectedShape,
  30. ShapeBorder? disabledShape}
)

Implementation

WeekdaySelector({
  Key? key,
  required this.onChanged,
  required this.values,
  this.shortWeekdays = defaultShortWeekdays,
  this.weekdays = defaultWeekdays,
  this.firstDayOfWeek = defaultFirstDayOfWeek,
  this.textDirection = defaultTextDirection,
  this.displayedDays = defaultDisplayedDays,
  this.enableFeedback,
  this.color,
  this.selectedColor,
  this.disabledColor,
  this.fillColor,
  this.selectedFillColor,
  this.disabledFillColor,
  this.elevation,
  this.selectedElevation,
  this.disabledElevation,
  this.focusColor,
  this.selectedFocusColor,
  this.hoverColor,
  this.selectedHoverColor,
  this.splashColor,
  this.selectedSplashColor,
  this.textStyle,
  this.selectedTextStyle,
  this.disabledTextStyle,
  this.shape,
  this.selectedShape,
  this.disabledShape,
})  : assert(values.length == 7),
      assert(shortWeekdays.length == 7),
      assert(weekdays.length == 7),
      assert(displayedDays.every(defaultDisplayedDays.contains)),
      super(key: key);