boxDecorationDefault function

Decoration boxDecorationDefault(
  1. {BorderRadiusGeometry? borderRadius,
  2. Color? color,
  3. Gradient? gradient,
  4. BoxBorder? border,
  5. BoxShape? shape,
  6. BlendMode? backgroundBlendMode,
  7. List<BoxShadow>? boxShadow,
  8. 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,
  );
}