ThemeSwitcher constructor

const ThemeSwitcher({
  1. Key? key,
  2. ThemeSwitcherStyle style = ThemeSwitcherStyle.icons,
  3. IconData? iconLight,
  4. IconData? iconDark,
  5. Color? darkColor,
  6. Color? lightColor,
  7. Color? darkIconColor,
  8. Color? lightIconColor,
  9. double? fontSize,
  10. FontWeight? fontWeight,
})

Creates a ThemeSwitcher widget.

The style parameter is required.

Implementation

const ThemeSwitcher({
  super.key,
  this.style = ThemeSwitcherStyle.icons,
  this.iconLight,
  this.iconDark,
  this.darkColor,
  this.lightColor,
  this.darkIconColor,
  this.lightIconColor,
  this.fontSize,
  this.fontWeight,
});