ScreenshotConfiguration constructor

ScreenshotConfiguration({
  1. InAppWebViewRect? rect,
  2. double? snapshotWidth,
  3. CompressFormat? compressFormat,
  4. int quality = 100,
  5. @Deprecated("Use afterScreenUpdates instead") bool? iosAfterScreenUpdates,
  6. bool afterScreenUpdates = true,
})

Implementation

ScreenshotConfiguration({
  this.rect,
  this.snapshotWidth,
  CompressFormat? compressFormat,
  this.quality = 100,
  @Deprecated("Use afterScreenUpdates instead") this.iosAfterScreenUpdates,
  this.afterScreenUpdates = true,
}) : compressFormat = compressFormat ?? CompressFormat.PNG {
  assert(this.quality >= 0);
  this.afterScreenUpdates = this.iosAfterScreenUpdates != null
      ? this.iosAfterScreenUpdates!
      : this.afterScreenUpdates;
}