decorated method
Widget
decorated({
- Color? color,
- DecorationImage? image,
- BoxBorder? border,
- BorderRadiusGeometry? borderRadius,
- List<
BoxShadow> ? boxShadow, - Gradient? gradient,
- BlendMode? backgroundBlendMode,
- BoxShape shape = BoxShape.rectangle,
- Key? key,
- DecorationPosition position = DecorationPosition.background,
A widget that paints a Decoration either before or after its child paints.
Implementation
Widget decorated({
Color? color,
DecorationImage? image,
BoxBorder? border,
BorderRadiusGeometry? borderRadius,
List<BoxShadow>? boxShadow,
Gradient? gradient,
BlendMode? backgroundBlendMode,
BoxShape shape = BoxShape.rectangle,
Key? key,
DecorationPosition position = DecorationPosition.background,
}) {
return DecoratedBox(
key: key,
decoration: BoxDecoration(
color: color,
image: image,
border: border,
borderRadius: borderRadius,
boxShadow: boxShadow,
gradient: gradient,
backgroundBlendMode: backgroundBlendMode,
shape: shape,
),
position: position,
child: this,
);
}