BoxDecoration
BoxDecoration provides a description of how to paint a box. The box has a border, a body, and may cast a shadow.
Properties
- 
          bgcolor(ColorValue | None) –The color to fill in the background of 
- 
          blend_mode(BlendMode | None) –
- 
          border(Border | None) –
- 
          border_radius(BorderRadiusValue | None) –The border radius of the box. 
- 
          gradient(Gradient | None) –A gradient to use when filling the box. 
- 
          image(DecorationImage | None) –
- 
          shadows(BoxShadowValue | None) –A list of shadows cast by the box. 
- 
          shape(BoxShape) –
Methods
- 
            copy–
Properties#
class-attribute
      instance-attribute
  
#
bgcolor: ColorValue | None = None
The color to fill in the background of the box.
class-attribute
      instance-attribute
  
#
border_radius: BorderRadiusValue | None = None
The border radius of the box.
class-attribute
      instance-attribute
  
#
gradient: Gradient | None = None
A gradient to use when filling the box.
class-attribute
      instance-attribute
  
#
image: DecorationImage | None = None
class-attribute
      instance-attribute
  
#
shadows: BoxShadowValue | None = None
A list of shadows cast by the box.
class-attribute
      instance-attribute
  
#
    
Methods#
copy(
    *,
    bgcolor: ColorValue | None = None,
    image: DecorationImage | None = None,
    border: Border | None = None,
    border_radius: BorderRadiusValue | None = None,
    shadows: BoxShadowValue | None = None,
    gradient: Gradient | None = None,
    shape: BoxShape | None = None,
    blend_mode: BlendMode | None = None,
)