CircularAnimatedTheme constructor

const CircularAnimatedTheme({
  1. Key? key,
  2. required ThemeData data,
  3. required ThemeData end,
  4. bool isMaterialAppTheme = false,
  5. Curve curve = Curves.linear,
  6. Duration duration = kThemeAnimationDuration,
  7. VoidCallback? onEnd,
  8. 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 CircularAnimatedTheme({
  Key? key,
  required this.data,
  required this.end,
  this.isMaterialAppTheme = false,
  Curve curve = Curves.linear,
  this.duration = kThemeAnimationDuration,
  VoidCallback? onEnd,
  required this.child,
}) : super(key: key);