themeAnimationStyle property
Used to override the theme animation curve and duration.
If AnimationStyle.duration is provided, it will be used to override the theme animation duration in the underlying AnimatedTheme widget. If it is null, then themeAnimationDuration will be used. Otherwise, defaults to 200ms.
If AnimationStyle.curve is provided, it will be used to override the theme animation curve in the underlying AnimatedTheme widget. If it is null, then themeAnimationCurve will be used. Otherwise, defaults to Curves.linear.
To disable the theme animation, use AnimationStyle.noAnimation.
{@tool dartpad} This sample showcases how to override the theme animation curve and duration in the MaterialApp widget using AnimationStyle.
** See code in examples/api/lib/material/app/app.0.dart ** {@end-tool}
Implementation
final AnimationStyle? themeAnimationStyle;