spotElement<W extends Widget> function
WidgetSelector<W>
spotElement<W extends Widget>(
- Element element, {
- List<
WidgetSelector< parents = const [],Widget> > - List<
WidgetSelector< children = const [],Widget> >
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);
}