registerElement method Null safety

  1. @deprecated
void registerElement(
  1. String tag,
  2. Type customElementClass,
  3. {String? extendsTag}

Deprecated: This is a legacy API based on a deprecated Web Components v0.5 specification. Web Components v0.5 doesn't work on modern browsers and can only be used with a polyfill.

The latest Web Components specification is supported indirectly via JSInterop and doesn't have an explicit API in the dart:html library.


void registerElement(String tag, Type customElementClass,
    {String? extendsTag}) {
      tag, {'prototype': customElementClass, 'extends': extendsTag});