DayNightSwitcherIcon constructor

const DayNightSwitcherIcon({
  1. required bool isDarkModeEnabled,
  2. required SwitcherStateChangedCallback onStateChanged,
  3. VoidCallback? onLongPress,
  4. Color? dayBackgroundColor,
  5. Color? nightBackgroundColor,
  6. Color? sunColor,
  7. Color? moonColor,
  8. Color? starsColor,
  9. Color? cloudsColor,
  10. Color? cratersColor,
})

Creates a new day night switch icon state.

Implementation

const DayNightSwitcherIcon({
  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,
      );