DecoratedSliver constructor

const DecoratedSliver({
  1. Key? key,
  2. required Decoration decoration,
  3. DecorationPosition position = DecorationPosition.background,
  4. Widget? sliver,
})

Creates a widget that paints a Decoration.

By default the decoration paints behind the child.

Implementation

const DecoratedSliver({
  super.key,
  required this.decoration,
  this.position = DecorationPosition.background,
  Widget? sliver,
}) : super(child: sliver);