NutrientDocumentView<T extends NutrientController> constructor

const NutrientDocumentView<T extends NutrientController>({
  1. Key? key,
  2. String? documentPath,
  3. Uint8List? documentBytes,
  4. NutrientViewConfiguration? configuration,
  5. void onControllerReady(
    1. T controller
    )?,
  6. T? adapter,
})

Implementation

const NutrientDocumentView({
  super.key,
  this.documentPath,
  this.documentBytes,
  this.configuration,
  this.onControllerReady,
  this.adapter,
}) : assert(
        documentPath != null || documentBytes != null,
        'Either documentPath or documentBytes must be provided',
      );