# DocumentScanningFlow constructor

DocumentScanningFlow({

1. String version = "1.0",
2. String screen = "DocumentScanner",
3. Palette? palette,
4. DocumentScannerTextLocalization? localization,
5. DocumentFlowAppearanceConfiguration? appearance,
6. DocumentScannerOutputSettings? outputSettings,
7. DocumentScannerScreens? screens,
8. String? documentUuid = null,
9. bool cleanScanningSession = true,
10. bool keepScreenOn = true,

})

## Implementation

    DocumentScanningFlow({
      this.version = "1.0",
      this.screen = "DocumentScanner",
      Palette? palette,
      DocumentScannerTextLocalization? localization,
      DocumentFlowAppearanceConfiguration? appearance,
      DocumentScannerOutputSettings? outputSettings,
      DocumentScannerScreens? screens,
      this.documentUuid = null,
      this.cleanScanningSession = true,
      this.keepScreenOn = true,
    })  : 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 ?? DocumentScannerTextLocalization(),
          appearance = appearance ?? DocumentFlowAppearanceConfiguration(),
          outputSettings = outputSettings ?? DocumentScannerOutputSettings(),
          screens = screens ?? DocumentScannerScreens();