build<T extends GraphObject> static method

T build<T extends GraphObject>(
  1. String name, [
  2. dynamic config,
  3. Iterable? args
])

This static function creates an instance that was defined with GraphObject.defineBuilder. Once this is called one can use the name as the first argument for GraphObject.make. Names are case sensitive.

The second is an optional settings configuration object, equivalent to calling GraphObject#set on the new object.

Predefined builder names include: "Button", "TreeExpanderButton", "SubGraphExpanderButton", "PanelExpanderButton", and "ContextMenuButton". The implementation of these builders is provided by Buttons.js in the Extensions directory.

Implementation

static T build<T extends _i3.GraphObject>(
  _i2.String name, [
  _i2.dynamic config,
  _i2.Iterable<_i2.dynamic>? args,
]) =>
    _i4.callMethod(
      _declaredGraphObject,
      'build',
      [
        name,
        config ?? _i5.undefined,
        ...?args,
      ],
    );