# DocumentScannerCamera constructor

const DocumentScannerCamera({

1. Key? key,
2. required DocumentCameraConfiguration configuration,
3. dynamic onCameraPreviewStarted(
   1. DocumentSnapTrigger snapTrigger,
   2. bool isFlashAvailable
   )?,
4. dynamic onHeavyOperationProcessing(
   1. bool
   )?,
5. dynamic documentContourListener(
   1. DocumentContourScanningResult result
   )?,
6. dynamic snapListener(
   1. Page result
   )?,
7. dynamic errorListener(
   1. SdkLicenseStatus exception
   )?,

})

## Implementation

    const DocumentScannerCamera({
      Key? key,
      required this.configuration,
      this.onCameraPreviewStarted,
      this.onHeavyOperationProcessing,
      this.documentContourListener,
      this.snapListener,
      this.errorListener,
    }) : super(key: key);