FlexThemeModeOptionButton constructor

const FlexThemeModeOptionButton(
  1. {Key? key,
  2. required FlexSchemeColor flexSchemeColor,
  3. Color? backgroundColor,
  4. String? label,
  5. String? semanticLabel,
  6. TextStyle? labelStyle,
  7. bool labelAbove = true,
  8. required bool selected,
  9. VoidCallback? onSelect,
  10. BorderSide? selectedBorder,
  11. BorderSide? unselectedBorder,
  12. double elevation = 0,
  13. EdgeInsetsGeometry? optionButtonPadding,
  14. EdgeInsetsGeometry? optionButtonMargin,
  15. double optionButtonBorderRadius = 5,
  16. double height = 24,
  17. double width = 24,
  18. double borderRadius = 4,
  19. EdgeInsetsGeometry? padding,
  20. Color? hoverColor,
  21. Color? focusColor,
  22. bool? setFocusOnTap}
)

Default constructor.

Implementation

const FlexThemeModeOptionButton({
  super.key,
  required this.flexSchemeColor,
  this.backgroundColor,
  this.label,
  this.semanticLabel,
  this.labelStyle,
  this.labelAbove = true,
  required this.selected,
  this.onSelect,
  this.selectedBorder,
  this.unselectedBorder,
  this.elevation = 0,
  this.optionButtonPadding,
  this.optionButtonMargin,
  this.optionButtonBorderRadius = 5,
  this.height = 24,
  this.width = 24,
  this.borderRadius = 4,
  this.padding,
  this.hoverColor,
  this.focusColor,
  this.setFocusOnTap,
}) : assert(elevation >= 0.0, 'Elevation must be >= 0.0');