boxDecoration static method
BoxDecoration
boxDecoration({
- required Color color,
- required int depth,
- Curvature curvature = Curvature.flat,
- Swell swell = Swell.emboss,
- double spread = defaultSpread,
- Alignment lightSource = defaultLightSource,
- BoxShape shape = BoxShape.rectangle,
- BorderRadiusGeometry? borderRadius,
- BoxBorder? border,
- DecorationImage? image,
- BlendMode? blendMode,
TODO: Write doc.
Implementation
static BoxDecoration boxDecoration({
required Color color,
required int depth,
Curvature curvature = Curvature.flat,
Swell swell = Swell.emboss,
double spread = defaultSpread,
Alignment lightSource = defaultLightSource,
BoxShape shape = BoxShape.rectangle,
BorderRadiusGeometry? borderRadius,
BoxBorder? border,
DecorationImage? image,
BlendMode? blendMode,
}) =>
BoxDecoration(
backgroundBlendMode: blendMode,
image: image,
shape: shape,
borderRadius: borderRadius,
border: border,
gradient: linearGradient(
color: color,
curvature: curvature,
swell: swell,
depth: depth,
begin: lightSource,
),
boxShadow: boxShadows(
color: color,
curvature: curvature,
swell: swell,
depth: depth,
spread: spread,
lightSource: lightSource,
),
);