# CroppingScreenConfiguration constructor

CroppingScreenConfiguration({

1. ButtonConfiguration? topBarBackButton,
2. StyledText? topBarTitle,
3. ButtonConfiguration? topBarConfirmButton,
4. ScanbotColor? backgroundColor,
5. ScanbotColor? croppingHandlerColor,
6. ScanbotColor? croppingPolygonColor,
7. ScanbotColor? croppingPolygonMagneticLineColor,
8. CroppingBottomBar? bottomBar,

})

## Implementation

    CroppingScreenConfiguration({
      ButtonConfiguration? topBarBackButton,
      StyledText? topBarTitle,
      ButtonConfiguration? topBarConfirmButton,
      ScanbotColor? backgroundColor,
      ScanbotColor? croppingHandlerColor,
      ScanbotColor? croppingPolygonColor,
      ScanbotColor? croppingPolygonMagneticLineColor,
      CroppingBottomBar? bottomBar,
    })  : topBarBackButton = topBarBackButton ??
              ButtonConfiguration(
                  visible: true,
                  text: "?croppingTopBarCancelButtonTitle",
                  accessibilityDescription:
                      "?accessibilityDescriptionCroppingTopBarCancelButton",
                  background: BackgroundStyle(
                      strokeColor: ScanbotColor("#00000000"),
                      fillColor: ScanbotColor("#00000000"),
                      strokeWidth: 0.0),
                  foreground: ForegroundStyle(
                      iconVisible: true,
                      color: ScanbotColor("?sbColorOnPrimary"),
                      useShadow: false)),
          topBarTitle = topBarTitle ??
              StyledText(
                  text: "?croppingScreenTitle",
                  color: ScanbotColor("?sbColorOnPrimary")),
          topBarConfirmButton = topBarConfirmButton ??
              ButtonConfiguration(
                  visible: true,
                  text: "?croppingTopBarConfirmButtonTitle",
                  accessibilityDescription:
                      "?accessibilityDescriptionCroppingTopBarConfirmButton",
                  background: BackgroundStyle(
                      strokeColor: ScanbotColor("#00000000"),
                      fillColor: ScanbotColor("#00000000"),
                      strokeWidth: 0.0),
                  foreground: ForegroundStyle(
                      iconVisible: true,
                      color: ScanbotColor("?sbColorOnPrimary"),
                      useShadow: false)),
          backgroundColor = backgroundColor ?? ScanbotColor("?sbColorOutline"),
          croppingHandlerColor =
              croppingHandlerColor ?? ScanbotColor("?sbColorSurface"),
          croppingPolygonColor =
              croppingPolygonColor ?? ScanbotColor("?sbColorSurface"),
          croppingPolygonMagneticLineColor =
              croppingPolygonMagneticLineColor ?? ScanbotColor("?sbColorSurface"),
          bottomBar = bottomBar ?? CroppingBottomBar();