findByKey method

WidgetSelection findByKey(
  1. String key
)

Implementation

WidgetSelection findByKey(String key) => WidgetSelection._fromMatches(
  scope: 'widget $type [${this.key}]',
  selector: 'findByKey("$key")',
  matches:
      [this, ...descendants].where((widget) => widget.key == key).toList(),
);