spotElement<W extends Widget> function

  1. @useResult
WidgetSelector<W> spotElement<W extends Widget>(
  1. Element element, {
  2. List<WidgetSelector<Widget>> parents = const [],
  3. List<WidgetSelector<Widget>> children = const [],
})

Creates a chainable WidgetSelector that finds the widget that is currently associated to the given element.

Implementation

@useResult
WidgetSelector<W> spotElement<W extends Widget>(
  Element element, {
  List<WidgetSelector> parents = const [],
  List<WidgetSelector> children = const [],
}) {
  return _global.spotElement<W>(element);
}