VThemeSwitchButton constructor

const VThemeSwitchButton({
  1. Key? key,
  2. required bool isDark,
  3. required VoidCallback onToggle,
  4. VThemeSwitchStyle style = VThemeSwitchStyle.lightDark,
  5. Duration duration = const Duration(milliseconds: 300),
  6. Curve curve = Curves.easeInOut,
  7. double iconSize = 24,
  8. IconData? lightIcon,
  9. IconData? darkIcon,
  10. AnimatedSwitcherTransitionBuilder? transitionBuilder,
})

Implementation

const VThemeSwitchButton({
  super.key,
  required this.isDark,
  required this.onToggle,
  this.style = VThemeSwitchStyle.lightDark,
  this.duration = const Duration(milliseconds: 300),
  this.curve = Curves.easeInOut,
  this.iconSize = 24,
  this.lightIcon,
  this.darkIcon,
  this.transitionBuilder,
});