closest property

({K$? Function<K$ extends Element>(HTMLElementTagNameMap<K$> selector) $1, E? Function<E extends Element>(String selectors) $2}) closest

Overload accessor: $1, $2

Implementation

({
  /// Returns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise.
  ///
  ///  [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/closest)
  K$? Function<K$ extends _i3.Element>(
      _i3.HTMLElementTagNameMap<K$> selector) $1,

  /// Returns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise.
  ///
  /// [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/closest)
  E? Function<E extends _i3.Element>(_i2.String selectors) $2,
}) get closest => (
      $1: _closest$1,
      $2: _closest$2,
    );