findMainElement method

GraphObject? findMainElement()

Return an immediate child element whose GraphObject#isPanelMain is true, or else just return the first child element. @return {GraphObject} this may return null if there are no child elements @since 1.5

Implementation

_i3.GraphObject? findMainElement() => _i4.callMethod(
      this,
      'findMainElement',
      [],
    );