define method

void define(
  1. String name,
  2. CustomElementConstructor constructor, [
  3. ElementDefinitionOptions? options
])

Implementation

void define(String name, CustomElementConstructor constructor,
        [ElementDefinitionOptions? options]) =>
    js_util.callMethod(
        this, 'define', [name, allowInterop(constructor), options]);