node<T extends DOMNode> method

T? node<T extends DOMNode>(
  1. Object? selector
)

Implementation

T? node<T extends DOMNode>(Object? selector) {
  if (selector is num) {
    return nodeByIndex(selector as int?);
  } else {
    return nodeWhere(selector);
  }
}