onChange property
Callback function DayNightSwitch.onChange is used to fetch the current state of DayNightSwitch ultimately indicating theme
Implementation
final ValueChanged<bool> onChange;
Callback function DayNightSwitch.onChange is used to fetch the current state of DayNightSwitch ultimately indicating theme
final ValueChanged<bool> onChange;