ThemeSwitcherCallback typedef
ThemeSwitcherCallback =
void Function({Offset? offset, VoidCallback? onAnimationFinish, required ThemeData theme})
A callback function signature for triggering the theme switch.
Implementation
typedef ThemeSwitcherCallback = void Function({
required ThemeData theme,
Offset? offset,
VoidCallback? onAnimationFinish,
});