FToggleButton constructor
const
FToggleButton({
- Key? key,
- required FColorI fSelectedColor,
- required FColorI fDisabledColor,
- required int index,
- required List<
String> options, - void onPressed()?,
- FColorI? fHoverColor,
- double borderRadius = 15,
- FColorI? fBorderColor = FColor.darkWhite,
- FTypographyType fTextTypographyType = FTypographyType.bodyLarge,
- bool enableTitle = true,
- String title = '',
- FTypographyType fTitleTextTypographyType = FTypographyType.bodyLarge,
- FColorI? fTitleColor,
Implementation
const FToggleButton(
{super.key,
required this.fSelectedColor,
required this.fDisabledColor,
required this.index,
required this.options,
this.onPressed,
this.fHoverColor,
this.borderRadius = 15,
this.fBorderColor = FColor.darkWhite,
this.fTextTypographyType = FTypographyType.bodyLarge,
this.enableTitle = true,
this.title = '',
this.fTitleTextTypographyType = FTypographyType.bodyLarge,
this.fTitleColor})
: assert(options.length >= index);