FocusSettings constructor
FocusSettings({
- String focusImage = '',
- Rect focusImageRect = Rect.zero,
- bool shouldDisplayFocusImage = false,
- bool shouldScanInFocusImageRect = false,
- String focusImageTintColor = '#FFFFFF66',
- String focusImageHighlightedColor = '#FFFFFF',
- bool showCodeBoundariesInMultipleScan = true,
- String validCodeBoundaryBorderColor = '#00FF00',
- int validCodeBoundaryBorderWidth = 2,
- String validCodeBoundaryFillColor = '#00AA0044',
- String invalidCodeBoundaryBorderColor = '#AA0000',
- int invalidCodeBoundaryBorderWidth = 2,
- String invalidCodeBoundaryFillColor = '#AA0000',
- bool showDocumentBoundaries = true,
- String documentBoundaryBorderColor = '#FFD966',
- String documentBoundaryFillColor = '#FFD96644',
Implementation
FocusSettings({
this.focusImage = '',
this.focusImageRect = Rect.zero,
this.shouldDisplayFocusImage = false,
this.shouldScanInFocusImageRect = false,
this.focusImageTintColor = '#FFFFFF66',
this.focusImageHighlightedColor = '#FFFFFF',
this.showCodeBoundariesInMultipleScan = true,
this.validCodeBoundaryBorderColor = '#00FF00',
this.validCodeBoundaryBorderWidth = 2,
this.validCodeBoundaryFillColor = '#00AA0044',
this.invalidCodeBoundaryBorderColor = '#AA0000',
this.invalidCodeBoundaryBorderWidth = 2,
this.invalidCodeBoundaryFillColor = '#AA0000',
this.showDocumentBoundaries = true,
this.documentBoundaryBorderColor = '#FFD966',
this.documentBoundaryFillColor = '#FFD96644',
});