boxDecorationDefault function
Decoration
boxDecorationDefault({
- BorderRadiusGeometry? borderRadius,
- Color? color,
- Gradient? gradient,
- BoxBorder? border,
- BoxShape? shape,
- BlendMode? backgroundBlendMode,
- List<
BoxShadow> ? boxShadow, - DecorationImage? image,
Implementation
Decoration boxDecorationDefault({
BorderRadiusGeometry? borderRadius,
Color? color,
Gradient? gradient,
BoxBorder? border,
BoxShape? shape,
BlendMode? backgroundBlendMode,
List<BoxShadow>? boxShadow,
DecorationImage? image,
}) {
return BoxDecoration(
borderRadius: (shape != null && shape == BoxShape.circle)
? null
: (borderRadius ?? radius()),
boxShadow: boxShadow ?? defaultBoxShadow(),
color: color ?? Colors.white,
gradient: gradient,
border: border,
shape: shape ?? BoxShape.rectangle,
backgroundBlendMode: backgroundBlendMode,
image: image,
);
}