discovered property
List<WidgetMatcher<W> >
discovered
Gets a list of WidgetMatcher
s for each widget discovered in the
snapshot.
This list allows for individual assertions or operations on each matched widget. The items in the list are immutable to ensure consistent state.
Implementation
List<WidgetMatcher<W>> get discovered {
final items = _snapshot.discovered.mapIndexed((index, element) {
return WidgetMatcher(
selector: _snapshot.selector.atIndex(index),
element: element.element,
);
});
return List.unmodifiable(items);
}