HtmlWidget constructor
- String html,
- {Uri baseUrl,
- bool buildAsync,
- AsyncWidgetBuilder<
Widget> buildAsyncBuilder, - CustomStylesBuilder customStylesBuilder,
- CustomWidgetBuilder customWidgetBuilder,
- bool enableCaching,
- WidgetFactory factoryBuilder(
- Color hyperlinkColor: const Color.fromRGBO(0, 0, 255, 1),
- Key key,
- void onTapUrl( ),
- 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);