FToggleButton constructor

const FToggleButton({
  1. Key? key,
  2. required FColorI fSelectedColor,
  3. required FColorI fDisabledColor,
  4. required int index,
  5. required List<String> options,
  6. void onPressed(
    1. int
    )?,
  7. FColorI? fHoverColor,
  8. double borderRadius = 15,
  9. FColorI? fBorderColor = FColor.darkWhite,
  10. FTypographyType fTextTypographyType = FTypographyType.bodyLarge,
  11. bool enableTitle = true,
  12. String title = '',
  13. FTypographyType fTitleTextTypographyType = FTypographyType.bodyLarge,
  14. 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);