SideCaptureResult constructor

SideCaptureResult(
  1. Map<String, dynamic> nativeCaptureResult
)

Result of the document side capture.

Contains the original and transformed image of the captured document side and the information about the document side and DPI.

Implementation

SideCaptureResult(Map<String, dynamic> nativeCaptureResult) {
  this.capturedImage = nativeCaptureResult['nativeCapturedImage'] != null
      ? nativeCaptureResult['nativeCapturedImage']
      : null;
  this.transformedImage =
      nativeCaptureResult['nativeTransformedImage'] != null
          ? nativeCaptureResult['nativeTransformedImage']
          : null;
  this.side = nativeCaptureResult['nativeSide'] != null
      ? DocumentSide.values[nativeCaptureResult['nativeSide']]
      : null;
  this.dpiAdjusted = nativeCaptureResult['nativeDpiAdjusted'] != null
      ? nativeCaptureResult['nativeDpiAdjusted']
      : null;
}