FocusSettings constructor

FocusSettings({
  1. String focusImage = '',
  2. Rect focusImageRect = Rect.zero,
  3. bool shouldDisplayFocusImage = false,
  4. bool shouldScanInFocusImageRect = false,
  5. String focusImageTintColor = '#FFFFFF66',
  6. String focusImageHighlightedColor = '#FFFFFF',
  7. bool showCodeBoundariesInMultipleScan = true,
  8. String validCodeBoundaryBorderColor = '#00FF00',
  9. int validCodeBoundaryBorderWidth = 2,
  10. String validCodeBoundaryFillColor = '#00AA0044',
  11. String invalidCodeBoundaryBorderColor = '#AA0000',
  12. int invalidCodeBoundaryBorderWidth = 2,
  13. String invalidCodeBoundaryFillColor = '#AA0000',
  14. bool showDocumentBoundaries = true,
  15. String documentBoundaryBorderColor = '#FFD966',
  16. 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',
});