ChildSlot.fromQuery constructor

ChildSlot.fromQuery(
  1. String query, {
  2. required Component child,
  3. Key? key,
})

Creates a slot that renders child as the content of the first element matching the CSS selector query.

Only elements nested in the view's nodes are searched, not the top-level nodes themselves.

Implementation

factory ChildSlot.fromQuery(String query, {required Component child, Key? key}) = _QueryChildSlot;