W3cubDocs

/Dart 2

define method

void define (String name, Object constructor, [ Map options ])

Implementation

void define(String name, Object constructor, [Map options]) {
  if (options != null) {
    var options_1 = convertDartToNative_Dictionary(options);
    _define_1(name, constructor, options_1);
    return;
  }
  _define_2(name, constructor);
  return;
}

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/2.0.0/dart-html/CustomElementRegistry/define.html