DecoratedBoxTransition constructor

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

Creates an animated DecoratedBox whose Decoration animation updates the widget.

The decoration and position must not be null.

See also:

Implementation

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