shapeDecorated method

DecoratedBox shapeDecorated({
  1. required ShapeBorder shape,
  2. Color? color,
  3. DecorationImage? image,
  4. Gradient? gradient,
  5. List<BoxShadow>? shadows,
})

Implementation

DecoratedBox shapeDecorated({required ShapeBorder shape, Color? color, DecorationImage? image, Gradient? gradient, List<BoxShadow>? shadows}) {
  return DecoratedBox(child: this, decoration: ShapeDecoration(shape: shape, color: color, image: image, gradient: gradient, shadows: shadows));
}