onChange property
Callback function DayNightSwitch.onChange is used to fetch the current state of DayNightSwitch ultimately indicating theme
Implementation
final Function(bool) onChange;
Callback function DayNightSwitch.onChange is used to fetch the current state of DayNightSwitch ultimately indicating theme
final Function(bool) onChange;