buildBacking method

BoxDecoration buildBacking()

Implementation

BoxDecoration buildBacking() {
  //performs null safety check on backing shadow and passes an empty list if null
  List<BoxShadow> backingShadow =
      decorationHaze != null ? [decorationHaze!] : [];

  return BoxDecoration(
      color: decorationFill,
      gradient: decorationGradient,
      border: decorationBorder,
      shape: decorationShape ?? BoxShape.rectangle,
      boxShadow: backingShadow,
      borderRadius: decorationCornerRadius);
}