onChange property
callback which specifies the theme , you must put your update theme logic inside this
Implementation
final Function(ThemeMode) onChange;
callback which specifies the theme , you must put your update theme logic inside this
final Function(ThemeMode) onChange;