VThemeSwitchButton constructor
const
VThemeSwitchButton({
- Key? key,
- required bool isDark,
- required VoidCallback onToggle,
- VThemeSwitchStyle style = VThemeSwitchStyle.lightDark,
- Duration duration = const Duration(milliseconds: 300),
- Curve curve = Curves.easeInOut,
- double iconSize = 24,
- IconData? lightIcon,
- IconData? darkIcon,
- 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,
});