SFToggleButton constructor

const SFToggleButton({
  1. Key? key,
  2. required dynamic onToggle(
    1. bool
    ),
  3. bool initialValue = false,
  4. Color? lightModeColor,
  5. Color? darkModeColor,
  6. Icon? lightIcon,
  7. Icon? darkIcon,
  8. Color? lightIconColor,
  9. Color? darkIconColor,
  10. ComponentSize size = ComponentSize.md,
})

Implementation

const SFToggleButton({
  super.key,
  required this.onToggle,
  this.initialValue = false,
  this.lightModeColor,
  this.darkModeColor,
  this.lightIcon,
  this.darkIcon,
  this.lightIconColor,
  this.darkIconColor,
  this.size = ComponentSize.md,
});