WebView constructor

WebView(
  1. String url,
  2. {@required double aspectRatio,
  3. bool autoResize,
  4. List<Duration> autoResizeIntervals: const [null, Duration(seconds: 1), Duration(seconds: 2)],
  5. bool interceptNavigationRequest(
    1. String
    ),
  6. bool js: true,
  7. bool unsupportedWorkaroundForIssue37: false,
  8. Key key}
)

Creates a web view.

Implementation

WebView(
  this.url, {
  @required this.aspectRatio,
  bool autoResize,
  this.autoResizeIntervals = const [
    null,
    Duration(seconds: 1),
    Duration(seconds: 2),
  ],
  this.interceptNavigationRequest,
  this.js = true,
  this.unsupportedWorkaroundForIssue37 = false,
  Key key,
})  : assert(url != null),
      assert(aspectRatio != null),
      autoResize = !js ? false : autoResize ?? js,
      super(key: key);