DecoratedBoxTransitionModifier constructor
const
DecoratedBoxTransitionModifier({
- Key? key,
- Widget? child,
- Key? modifierKey,
- required Animation<
Decoration> decoration, - 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,
});