changeTheme method

void changeTheme({
  1. required ThemeData theme,
  2. Offset? offset,
  3. VoidCallback? onAnimationFinish,
})

Implementation

void changeTheme({
  required ThemeData theme,
  Offset? offset,
  VoidCallback? onAnimationFinish,
}) {
  InheritedThemeController.of(context).changeTheme(
    context,
    theme: theme,
    key: _globalKey,
    offset: offset,
    onAnimationFinish: onAnimationFinish,
  );
}