onChangeTheme property
Callback fired with the chosen ThemeMode when the user picks a
theme from the switcher. If null — or showThemeToggle is off — the
"Theme" menu item is not displayed.
Implementation
final void Function(ThemeMode mode)? onChangeTheme;