DayNightSwitcher constructor
const
DayNightSwitcher({})
Creates a new day night switch icon state.
Implementation
const DayNightSwitcher({
required bool isDarkModeEnabled,
required SwitcherStateChangedCallback onStateChanged,
VoidCallback? onLongPress,
Color? dayBackgroundColor,
Color? nightBackgroundColor,
Color? sunColor,
Color? moonColor,
Color? starsColor,
Color? cloudsColor,
Color? cratersColor,
}) : super(
isDarkModeEnabled: isDarkModeEnabled,
onStateChanged: onStateChanged,
onLongPress: onLongPress,
dayBackgroundColor: dayBackgroundColor,
nightBackgroundColor: nightBackgroundColor,
sunColor: sunColor,
moonColor: moonColor,
starsColor: starsColor,
cloudsColor: cloudsColor,
cratersColor: cratersColor,
);