HeadlessBrowserConfig constructor

const HeadlessBrowserConfig({
  1. String? userAgent,
  2. bool javaScriptEnabled = true,
  3. bool domStorageEnabled = true,
  4. bool mixedContentMode = true,
  5. bool cacheEnabled = true,
  6. int timeoutMillis = 30000,
  7. bool blockImages = false,
  8. bool blockPopups = true,
  9. Map<String, String>? customHeaders,
  10. bool clearCookies = false,
  11. bool clearCache = false,
  12. bool ignoreSSLErrors = false,
  13. bool loggingEnabled = kDebugMode,
  14. String? url,
  15. Map<String, String>? headers,
  16. int? timeout,
  17. bool waitForNetworkIdle = true,
  18. bool waitForDomContentLoaded = true,
})

Creates a new HeadlessBrowserConfig instance

Implementation

const HeadlessBrowserConfig({
  this.userAgent,
  this.javaScriptEnabled = true,
  this.domStorageEnabled = true,
  this.mixedContentMode = true,
  this.cacheEnabled = true,
  this.timeoutMillis = 30000,
  this.blockImages = false,
  this.blockPopups = true,
  this.customHeaders,
  this.clearCookies = false,
  this.clearCache = false,
  this.ignoreSSLErrors = false,
  this.loggingEnabled = kDebugMode,
  this.url,
  this.headers,
  this.timeout,
  this.waitForNetworkIdle = true,
  this.waitForDomContentLoaded = true,
});