spotKey<W extends Widget> function

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

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,
  );
}