DecoratedBoxModifier constructor
const
DecoratedBoxModifier({
- Key? key,
- Widget? child,
- Key? modifierKey,
- required Decoration decoration,
- DecorationPosition position = DecorationPosition.background,
Creates a widget that paints a Decoration.
The decoration
and position
arguments must not be null. By default the
decoration paints behind the child.
Implementation
const DecoratedBoxModifier({
super.key,
super.child,
super.modifierKey,
required this.decoration,
this.position = DecorationPosition.background,
});