FlexThemeModeOptionButton constructor
const
FlexThemeModeOptionButton({
- Key? key,
- required FlexSchemeColor flexSchemeColor,
- Color? backgroundColor,
- String? label,
- TextStyle? labelStyle,
- bool labelAbove = true,
- required bool selected,
- VoidCallback? onSelect,
- BorderSide? selectedBorder,
- BorderSide? unselectedBorder,
- double elevation = 0,
- EdgeInsets? optionButtonPadding,
- EdgeInsets? optionButtonMargin,
- double optionButtonBorderRadius = 5,
- double height = 24,
- double width = 24,
- double borderRadius = 4,
- EdgeInsets? padding,
- 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);