CroppingConfiguration constructor

CroppingConfiguration({
  1. String version = "1.0",
  2. String screen = "CroppingConfiguration",
  3. Palette? palette,
  4. required String documentUuid,
  5. required String pageUuid,
  6. CroppingTextLocalization? localization,
  7. CroppingAppearanceConfiguration? appearance,
  8. CroppingScreenConfiguration? cropping,
  9. DocumentAnalysisMode documentAnalysisMode = DocumentAnalysisMode.UNFILTERED_DOCUMENT,
})

Implementation

CroppingConfiguration({
  this.version = "1.0",
  this.screen = "CroppingConfiguration",
  Palette? palette,
  required this.documentUuid,
  required this.pageUuid,
  CroppingTextLocalization? localization,
  CroppingAppearanceConfiguration? appearance,
  CroppingScreenConfiguration? cropping,
  this.documentAnalysisMode = DocumentAnalysisMode.UNFILTERED_DOCUMENT,
})  : palette = palette ??
          Palette(
              sbColorPrimary: ScanbotColor("#C8193C"),
              sbColorPrimaryDisabled: ScanbotColor("#F5F5F5"),
              sbColorNegative: ScanbotColor("#FF3737"),
              sbColorPositive: ScanbotColor("#4EFFB4"),
              sbColorWarning: ScanbotColor("#FFCE5C"),
              sbColorSecondary: ScanbotColor("#FFEDEE"),
              sbColorSecondaryDisabled: ScanbotColor("#F5F5F5"),
              sbColorOnPrimary: ScanbotColor("#FFFFFF"),
              sbColorOnSecondary: ScanbotColor("#C8193C"),
              sbColorSurface: ScanbotColor("#FFFFFF"),
              sbColorOutline: ScanbotColor("#EFEFEF"),
              sbColorOnSurfaceVariant: ScanbotColor("#707070"),
              sbColorOnSurface: ScanbotColor("#000000"),
              sbColorSurfaceLow: ScanbotColor("#00000026"),
              sbColorSurfaceHigh: ScanbotColor("#0000007A"),
              sbColorModalOverlay: ScanbotColor("#000000A3")),
      localization = localization ?? CroppingTextLocalization(),
      appearance = appearance ?? CroppingAppearanceConfiguration(),
      cropping = cropping ?? CroppingScreenConfiguration();