AnimatedThemeModifier constructor

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

Creates an animated theme.

By default, the theme transition uses a linear curve. The data and child arguments must not be null.

Implementation

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