decoratedBox method

DecoratedBox decoratedBox(
  1. Decoration decoration, {
  2. Key? key,
  3. DecorationPosition position = DecorationPosition.background,
})

Implementation

DecoratedBox decoratedBox(Decoration decoration,
        {Key? key,
        DecorationPosition position = DecorationPosition.background}) =>
    DecoratedBox(
        key: key, decoration: decoration, position: position, child: this);