WeekdayButton constructor

const WeekdayButton({
  1. Key? key,
  2. required String text,
  3. required String tooltip,
  4. required VoidCallback? onPressed,
  5. required bool? selected,
  6. bool? enableFeedback,
  7. Color? color,
  8. Color? selectedColor,
  9. Color? disabledColor,
  10. Color? fillColor,
  11. Color? selectedFillColor,
  12. Color? disabledFillColor,
  13. double? elevation,
  14. double? selectedElevation,
  15. double? disabledElevation,
  16. Color? focusColor,
  17. Color? selectedFocusColor,
  18. Color? hoverColor,
  19. Color? selectedHoverColor,
  20. Color? splashColor,
  21. Color? selectedSplashColor,
  22. TextStyle? textStyle,
  23. TextStyle? selectedTextStyle,
  24. TextStyle? disabledTextStyle,
  25. ShapeBorder? shape,
  26. ShapeBorder? selectedShape,
  27. ShapeBorder? disabledShape,
})

Creates a WeekdayButton widget.

Implementation

const WeekdayButton({
  Key? key,
  required this.text,
  required this.tooltip,
  required this.onPressed,
  required this.selected,
  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(text.length != 0),
      assert(tooltip.length != 0),
      super(key: key);