OcrViewer constructor

OcrViewer({
  1. Key? key,
  2. required ReaderType readerType,
  3. required dynamic onValueReaded(
    1. String? value
    ),
  4. required DeviceOrientation deviceOrientation,
  5. Widget? child,
  6. dynamic onImageAvailable(
    1. Image? image
    )?,
  7. dynamic imageFileCallback(
    1. File imageFile
    )?,
  8. OcrRecognizingType ocrRecognizingType = OcrRecognizingType.numeric,
  9. bool autopop = false,
  10. int limitOfMatches = 3,
  11. double heightInterestFactor = 0.2,
  12. double widthInterestFactor = 0.7,
  13. Color ocrTextColor = Colors.blue,
  14. Color ocrBorderColor = Colors.blue,
})

Implementation

OcrViewer(
    {super.key,
    required this.readerType,
    required this.onValueReaded,
    required this.deviceOrientation,
    this.child,
    this.onImageAvailable,
    this.imageFileCallback,
    this.ocrRecognizingType = OcrRecognizingType.numeric,
    this.autopop = false,
    this.limitOfMatches = 3,
    this.heightInterestFactor = 0.2,
    this.widthInterestFactor = 0.7,
    this.ocrTextColor = Colors.blue,
    this.ocrBorderColor = Colors.blue});