DecoratedBoxTransition constructor

const DecoratedBoxTransition(
  1. {Key key,
  2. @required Animation<Decoration> decoration,
  3. DecorationPosition position: DecorationPosition.background,
  4. @required Widget child}

Creates an animated DecoratedBox whose Decoration animation updates the widget.

The decoration and position must not be null.

See also:


const DecoratedBoxTransition({
  Key key,
  @required this.decoration,
  this.position = DecorationPosition.background,
  @required this.child,
}) : assert(decoration != null),
     assert(child != null),
     super(key: key, listenable: decoration);