# ZoomOverlay constructor

ZoomOverlay({

1. ScanbotColor? overlayColor,
2. ButtonConfiguration? closeButton,

})

## Implementation

    ZoomOverlay({
      ScanbotColor? overlayColor,
      ButtonConfiguration? closeButton,
    })  : overlayColor = overlayColor ?? ScanbotColor("?sbColorModalOverlay"),
          closeButton = closeButton ??
              ButtonConfiguration(
                  text: "?zoomOverlayCancelButtonText",
                  accessibilityDescription:
                      "?accessibilityDescriptionZoomOverlayCancelButton",
                  background: BackgroundStyle(
                      fillColor: ScanbotColor("#00000000"), strokeWidth: 0.0),
                  foreground:
                      ForegroundStyle(color: ScanbotColor("?sbColorOnPrimary")));