WebResourceError constructor

WebResourceError({
  1. required int errorCode,
  2. required String description,
  3. String? domain,
  4. WebResourceErrorType? errorType,
  5. String? failingUrl,
})

Creates a new WebResourceError

A user should not need to instantiate this class, but will receive one in WebResourceErrorCallback.

Implementation

WebResourceError({
  required this.errorCode,
  required this.description,
  this.domain,
  this.errorType,
  this.failingUrl,
})  : assert(errorCode != null),
      assert(description != null);