whereKey method

  1. @useResult
WidgetSelector<W> whereKey(
  1. MatchProp<Key> match
)

Implementation

@useResult
WidgetSelector<W> whereKey(MatchProp<Key> match) {
  return withProp(
    widgetSelector: (subject) => subject.context.nest<Key?>(
      () => ['has key'],
      (W widget) => Extracted.value(widget.key),
    ),
    match: match.hideNullability(),
  );
}