WebViewController constructor

WebViewController({
  1. Set<String> allowedSchemes = const {'http', 'https'},
  2. void onNavigation(
    1. Uri uri
    )?,
  3. void onLoadError(
    1. WebViewLoadError error
    )?,
})

Implementation

WebViewController({
  Set<String> allowedSchemes = const {'http', 'https'},
  this.onNavigation,
  this.onLoadError,
}) : allowedSchemes = allowedSchemes
         .map((scheme) => scheme.toLowerCase())
         .toSet();