OptionsBase.fromOptions constructor

OptionsBase.fromOptions(
  1. Options options
)

Implementation

OptionsBase.fromOptions(Options options)
    : impl = OptionsJS(
        maxSizeMB: options.maxSizeMB,
        maxWidthOrHeight: options.maxWidthOrHeight,
        useWebWorker: options.useWebWorker,
        maxIteration: options.maxIteration,
        exifOrientation: options.exifOrientation,
        onProgress: (options.onProgress != null)
            ? allowInterop(options.onProgress!)
            : null,
        fileType: options.fileType,
        initialQuality: options.initialQuality,
        alwaysKeepResolution: options.alwaysKeepResolution,
        preserveExif: options.preserveExif,
        libURL: options.libURL,
      );