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