IDCameraWidget constructor

const IDCameraWidget({
  1. Key? key,
  2. required CameraDescription camera,
  3. MaskType maskType = MaskType.idCard,
  4. required ValueChanged<XFile?> onResult,
  5. String title = 'This is title',
  6. String firstDescription = 'This is first description',
  7. String secondDescription = 'This is second description',
  8. String questionToConfirmUseByTakenPhoto = 'This is question to confirm use by taken photo',
  9. String rejectText = 'Captures',
  10. String confirmText = 'Using this photo',
})

Implementation

const IDCameraWidget({
  Key? key,
  required this.camera,
  this.maskType = MaskType.idCard,
  required this.onResult,
  this.title = 'This is title',
  this.firstDescription = 'This is first description',
  this.secondDescription = 'This is second description',
  this.questionToConfirmUseByTakenPhoto =
      'This is question to confirm use by taken photo',
  this.rejectText = 'Captures',
  this.confirmText = 'Using this photo',
}) : super(key: key);