HtmlWidget constructor
const
HtmlWidget(
- String html, {
- Uri? baseUrl,
- bool? buildAsync,
- CustomStylesBuilder? customStylesBuilder,
- CustomWidgetBuilder? customWidgetBuilder,
- bool? enableCaching,
- WidgetFactory factoryBuilder()?,
- Key? key,
- OnErrorBuilder? onErrorBuilder,
- OnLoadingBuilder? onLoadingBuilder,
- void onTapImage()?,
- FutureOr<
bool> onTapUrl()?, - List? rebuildTriggers,
- RenderMode renderMode = RenderMode.column,
- TextStyle? textStyle,
Creates a widget that builds Flutter widget tree from html.
The html argument must not be null.
Implementation
const HtmlWidget(
this.html, {
this.baseUrl,
this.buildAsync,
this.customStylesBuilder,
this.customWidgetBuilder,
this.enableCaching,
this.factoryBuilder,
super.key,
this.onErrorBuilder,
this.onLoadingBuilder,
this.onTapImage,
this.onTapUrl,
List<dynamic>? rebuildTriggers,
this.renderMode = RenderMode.column,
this.textStyle,
}) : _rebuildTriggers = rebuildTriggers;