HTMLWidgetBase constructor

const HTMLWidgetBase({
  1. Key? key,
  2. NullableElementCallback? ref,
  3. String? id,
  4. String? title,
  5. String? style,
  6. String? className,
  7. bool? hidden,
  8. String? innerText,
  9. Widget? child,
  10. List<Widget>? children,
  11. EventCallback? onClick,
  12. Map<String, String>? additionalAttributes,
})

Implementation

const HTMLWidgetBase({
  Key? key,
  this.ref,
  this.id,
  this.title,
  this.style,
  this.className,
  this.hidden,
  this.innerText,
  this.child,
  this.children,
  this.onClick,
  this.additionalAttributes,
})  : assert(
        (null == child && null == children) ||
            (null == innerText && null == child) ||
            (null == innerText && null == children),
        'A widget can have innerText or child or children list.',
      ),
      super(key: key);