DecoratedBoxTransitionModifier constructor

const DecoratedBoxTransitionModifier({
  1. Key? key,
  2. Widget? child,
  3. Key? modifierKey,
  4. required Animation<Decoration> decoration,
  5. DecorationPosition position = DecorationPosition.background,
})

Creates an animated DecoratedBox whose Decoration animation updates the widget.

The decoration and position must not be null.

See also:

Implementation

const DecoratedBoxTransitionModifier({
  super.key,
  super.child,
  super.modifierKey,
  required this.decoration,
  this.position = DecorationPosition.background,
});