FlexThemeModeOptionButton constructor

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

Default constructor.

Implementation

const FlexThemeModeOptionButton({
  Key? key,
  required this.flexSchemeColor,
  this.backgroundColor,
  this.label,
  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,
})  : assert(elevation >= 0.0, 'Elevation must be >= 0.0'),
      super(key: key);