getNodeFor method

TreeViewNode<Object?>? getNodeFor(
  1. Object? content
)

Returns the TreeViewNode containing the associated content, if it exists.

If no node exists, this will return null. This does not reflect whether or not a node isActive, or if it is currently visible in the viewport.

Implementation

TreeViewNode<Object?>? getNodeFor(Object? content) {
  assert(_state != null);
  return _state!.getNodeFor(content);
}