getNodeFor method

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

Returns the TreeSliverNode 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

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