CaptureStrategy.withDimensions constructor

const CaptureStrategy.withDimensions({
  1. int? width,
  2. int? height,
})

Uses the provided width and height as the output dimensions

Omitting any will fallback to dimensions of WebView Layout

Passing negative will measure the dimensions and calculate accordingly

Implementation

const CaptureStrategy.withDimensions({
  this.width,
  this.height,
}) : script = null;