HtmlWidget constructor

HtmlWidget(
  1. String html,
  2. {Uri baseUrl,
  3. bool buildAsync,
  4. AsyncWidgetBuilder<Widget> buildAsyncBuilder,
  5. CustomStylesBuilder customStylesBuilder,
  6. CustomWidgetBuilder customWidgetBuilder,
  7. bool enableCaching,
  8. WidgetFactory factoryBuilder(
      ),
    1. Color hyperlinkColor: const Color.fromRGBO(0, 0, 255, 1),
    2. Key key,
    3. void onTapUrl(
      1. String
      ),
    4. TextStyle textStyle: const TextStyle()}
    )

    Creates a widget that builds Flutter widget tree from html.

    The html argument must not be null.

    Implementation

    HtmlWidget(
      this.html, {
      this.baseUrl,
      this.buildAsync,
      this.buildAsyncBuilder,
      this.customStylesBuilder,
      this.customWidgetBuilder,
      this.enableCaching,
      this.factoryBuilder,
      this.hyperlinkColor = const Color.fromRGBO(0, 0, 255, 1),
      Key key,
      this.onTapUrl,
      this.textStyle = const TextStyle(),
    })  : assert(html != null),
          super(key: key);