AppWebView constructor

const AppWebView({
  1. Key? key,
  2. WebViewLoadType type = WebViewLoadType.url,
  3. required String value,
  4. WebViewCreatedCallback? onWebViewCreated,
  5. List<WebViewCookie> initialCookies = const <WebViewCookie>[],
  6. JavascriptMode javascriptMode = JavascriptMode.disabled,
  7. Set<JavascriptChannel>? javascriptChannels,
  8. NavigationDelegate? navigationDelegate,
  9. Set<Factory<OneSequenceGestureRecognizer>>? gestureRecognizers,
  10. PageStartedCallback? onPageStarted,
  11. PageFinishedCallback? onPageFinished,
  12. PageLoadingCallback? onProgress,
  13. WebResourceErrorCallback? onWebResourceError,
  14. bool debuggingEnabled = false,
  15. bool gestureNavigationEnabled = false,
  16. String? userAgent,
  17. bool zoomEnabled = true,
  18. AutoMediaPlaybackPolicy initialMediaPlaybackPolicy = AutoMediaPlaybackPolicy.require_user_action_for_all_media_types,
  19. bool allowsInlineMediaPlayback = false,
  20. Color? backgroundColor,
})

Implementation

const AppWebView({
  Key? key,
  this.type = WebViewLoadType.url,
  required this.value,
  this.onWebViewCreated,
  this.initialCookies = const <WebViewCookie>[],
  this.javascriptMode = JavascriptMode.disabled,
  this.javascriptChannels,
  this.navigationDelegate,
  this.gestureRecognizers,
  this.onPageStarted,
  this.onPageFinished,
  this.onProgress,
  this.onWebResourceError,
  this.debuggingEnabled = false,
  this.gestureNavigationEnabled = false,
  this.userAgent,
  this.zoomEnabled = true,
  this.initialMediaPlaybackPolicy =
      AutoMediaPlaybackPolicy.require_user_action_for_all_media_types,
  this.allowsInlineMediaPlayback = false,
  this.backgroundColor,
}) : super(key: key);