boxDecoration method
      
Container
boxDecoration({ 
    
- Color? color,
- DecorationImage? image,
- Border? border,
- BorderRadius? borderRadius,
- List<BoxShadow> ? boxShadow,
- Gradient? gradient,
- BlendMode? backgroundBlendMode,
- BoxShape shape = BoxShape.rectangle,
设置复杂的 BoxDecoration,支持链式调用
Implementation
Container boxDecoration({
  Color? color,
  DecorationImage? image,
  Border? border,
  BorderRadius? borderRadius,
  List<BoxShadow>? boxShadow,
  Gradient? gradient,
  BlendMode? backgroundBlendMode,
  BoxShape shape = BoxShape.rectangle,
}) {
  return Container(
    decoration: BoxDecoration(
      color: color,
      image: image,
      border: border,
      borderRadius: borderRadius,
      boxShadow: boxShadow,
      gradient: gradient,
      backgroundBlendMode: backgroundBlendMode,
      shape: shape,
    ),
    child: this,
  );
}