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#
image
#
image: DecorationImage | None = None
shape
#
Methods#
copy
#
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,
)