EasyWebView constructor

const EasyWebView({
  1. Key? key,
  2. required String src,
  3. required void onLoaded(),
  4. double? height,
  5. double? width,
  6. bool webAllowFullScreen = true,
  7. bool isHtml = false,
  8. bool isMarkdown = false,
  9. bool convertToWidgets = false,
  10. Map<String, String> headers = const {},
  11. bool widgetsTextSelectable = false,
  12. List<CrossWindowEvent> crossWindowEvents = const [],
  13. WebNavigationDelegate? webNavigationDelegate,
})

Implementation

const EasyWebView({
  Key? key,
  required this.src,
  required this.onLoaded,
  this.height,
  this.width,
  this.webAllowFullScreen = true,
  this.isHtml = false,
  this.isMarkdown = false,
  this.convertToWidgets = false,
  this.headers = const {},
  this.widgetsTextSelectable = false,
  this.crossWindowEvents = const [],
  this.webNavigationDelegate,
})  : assert((isHtml && isMarkdown) == false),
      super(key: key);