CaptureStrategy.customScript constructor
const
CaptureStrategy.customScript(
- String? script
Provide a custom script to calculate content dimensions
The script should return a JavaScript array of numbers where first element is the width and second element is the height
The array can also return array of two numbers with either or both values 0 for which the dimensions will fall back to WebView Layout Dimensions
For example, see CaptureStrategy.fitContentJs and CaptureStrategy.fullScrollJs
Implementation
const CaptureStrategy.customScript(this.script)
: width = null,
height = null;