OCRCameraWidget constructor
const
OCRCameraWidget({
- Key? key,
- required List<
CameraDescription> camera, - MaskType maskType = MaskType.idCard,
- required ValueChanged<
XFile?> onResult, - String title = 'This is title',
- TextStyle tStyle = _defaultTStyle,
- String firstDescription = 'This is first description',
- TextStyle fdStyle = _defaultFdStyle,
- String secondDescription = 'This is second description',
- TextStyle sdStyle = _defaultSdStyle,
- String questionToConfirmUseByTakenPhoto = 'This is question to confirm use by taken photo',
- TextStyle qtcubtpStyle = _defaultQTCUBTPStyle,
- String rejectText = 'Captures',
- TextStyle rtStyle = _defaultRtStyle,
- String confirmText = 'Using this photo',
- TextStyle cStyle = _defaultCStyle,
- Widget takePhotoButton = _takePhotoButton,
Implementation
const OCRCameraWidget({
Key? key,
required this.camera,
this.maskType = MaskType.idCard,
required this.onResult,
this.title = 'This is title',
this.tStyle = _defaultTStyle,
this.firstDescription = 'This is first description',
this.fdStyle = _defaultFdStyle,
this.secondDescription = 'This is second description',
this.sdStyle = _defaultSdStyle,
this.questionToConfirmUseByTakenPhoto =
'This is question to confirm use by taken photo',
this.qtcubtpStyle = _defaultQTCUBTPStyle,
this.rejectText = 'Captures',
this.rtStyle = _defaultRtStyle,
this.confirmText = 'Using this photo',
this.cStyle = _defaultCStyle,
this.takePhotoButton = _takePhotoButton,
}) : super(key: key);