AnimatedTheme constructor

const AnimatedTheme({Key key, @required ThemeData data, bool isMaterialAppTheme: false, Curve curve: Curves.linear, Duration duration: kThemeAnimationDuration, @required Widget child })

Creates an animated theme.

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

Implementation

const AnimatedTheme({
  Key key,
  @required this.data,
  this.isMaterialAppTheme = false,
  Curve curve = Curves.linear,
  Duration duration = kThemeAnimationDuration,
  @required this.child,
}) : assert(child != null),
     assert(data != null),
     super(key: key, curve: curve, duration: duration);