spotKey<W extends Widget> function
WidgetSelector<W>
spotKey<W extends Widget>(
- Key key, {
- List<
WidgetSelector< parents = const [],Widget> > - List<
WidgetSelector< children = const [],Widget> >
Creates a chainable WidgetSelector that finds a widget with the given key
.
Implementation
@useResult
WidgetSelector<W> spotKey<W extends Widget>(
Key key, {
List<WidgetSelector> parents = const [],
List<WidgetSelector> children = const [],
}) {
return _global.spotKey<W>(
key,
parents: parents,
children: children,
);
}