AnimatedTheme constructor

const AnimatedTheme(
  1. {Key? key,
  2. required ThemeData data,
  3. Curve curve = Curves.linear,
  4. Duration duration = kThemeAnimationDuration,
  5. VoidCallback? onEnd,
  6. required Widget child}
)

Creates an animated theme.

By default, the theme transition uses a linear curve.

Implementation

const AnimatedTheme({
  super.key,
  required this.data,
  super.curve,
  super.duration = kThemeAnimationDuration,
  super.onEnd,
  required this.child,
});