boxDecorationRoundedWithShadow function

Decoration boxDecorationRoundedWithShadow(
  1. int radiusAll,
  2. {Color backgroundColor = whiteColor,
  3. Color? shadowColor,
  4. double? blurRadius,
  5. double? spreadRadius,
  6. Offset offset = const Offset(0.0, 0.0),
  7. LinearGradient? gradient}
)

rounded box decoration with shadow

Implementation

Decoration boxDecorationRoundedWithShadow(
  int radiusAll, {
  Color backgroundColor = whiteColor,
  Color? shadowColor,
  double? blurRadius,
  double? spreadRadius,
  Offset offset = const Offset(0.0, 0.0),
  LinearGradient? gradient,
}) {
  return BoxDecoration(
    boxShadow: defaultBoxShadow(
      shadowColor: shadowColor ?? shadowColorGlobal,
      blurRadius: blurRadius ?? defaultBlurRadius,
      spreadRadius: spreadRadius ?? defaultSpreadRadius,
      offset: offset,
    ),
    color: backgroundColor,
    gradient: gradient,
    borderRadius: radius(radiusAll.toDouble()),
  );
}