HtmlWidget constructor Null safety

const HtmlWidget(
  1. String html,
  2. {Uri? baseUrl,
  3. bool? buildAsync,
  4. CustomStylesBuilder? customStylesBuilder,
  5. CustomWidgetBuilder? customWidgetBuilder,
  6. bool? enableCaching,
  7. WidgetFactory factoryBuilder(
      )?,
    1. Key? key,
    2. OnErrorBuilder? onErrorBuilder,
    3. OnLoadingBuilder? onLoadingBuilder,
    4. void onTapImage(
      1. ImageMetadata
      )?,
    5. FutureOr<bool> onTapUrl(
      1. String
      )?,
    6. RebuildTriggers? rebuildTriggers,
    7. RenderMode renderMode = RenderMode.column,
    8. TextStyle? textStyle = const 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,
      Key? key,
      this.onErrorBuilder,
      this.onLoadingBuilder,
      this.onTapImage,
      this.onTapUrl,
      RebuildTriggers? rebuildTriggers,
      this.renderMode = RenderMode.column,
      this.textStyle = const TextStyle(),
    })  : _rebuildTriggers = rebuildTriggers,
          super(key: key);