BarcodeInfoMapping constructor
BarcodeInfoMapping({
- BarcodeItemMapper? barcodeItemMapper,
- ScanbotColor? sheetColor,
- ScanbotColor? dividerColor,
- ScanbotColor? modalOverlayColor,
- StyledText? loadingMessage,
- BarcodeItemErrorState? errorState,
Implementation
BarcodeInfoMapping({
BarcodeItemMapper? barcodeItemMapper,
ScanbotColor? sheetColor,
ScanbotColor? dividerColor,
ScanbotColor? modalOverlayColor,
StyledText? loadingMessage,
BarcodeItemErrorState? errorState,
}) : barcodeItemMapper = barcodeItemMapper ?? null,
sheetColor = sheetColor ?? ScanbotColor("?sbColorSurface"),
dividerColor = dividerColor ?? ScanbotColor("?sbColorOutline"),
modalOverlayColor =
modalOverlayColor ?? ScanbotColor("?sbColorModalOverlay"),
loadingMessage = loadingMessage ??
StyledText(
text: "Loading message for barcode info mapping.",
color: ScanbotColor("?sbColorPrimary")),
errorState = errorState ?? BarcodeItemErrorState();