DecoratedBoxModifier constructor

const DecoratedBoxModifier({
  1. Key? key,
  2. Widget? child,
  3. Key? modifierKey,
  4. required Decoration decoration,
  5. 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,
});