spotSingleKey<W extends Widget> function
- @useResult
- @Deprecated('Use spotKey().atMost(1)')
- 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
@Deprecated('Use spotKey().atMost(1)')
WidgetSelector<W> spotSingleKey<W extends Widget>(
Key key, {
List<WidgetSelector> parents = const [],
List<WidgetSelector> children = const [],
}) {
return _global.spotSingleKey<W>(
key,
parents: parents,
children: children,
);
}