ScreenshotConfiguration constructor

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

Implementation

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