onChange property

ValueChanged<bool> onChange
final

Callback function DayNightSwitch.onChange is used to fetch the current state of DayNightSwitch ultimately indicating theme

Implementation

final ValueChanged<bool> onChange;