discoveredWidgets property

List<W> discoveredWidgets

Shorthand to get the widgets of all discovered elements (see discovered or discoveredElements)

This list may be incomplete for synthetic widgets like AnyText, when the widgets are not of type W.

To check the number of discovered elements, always use discovered or discoveredElements. Use discoveredWidgets only when you need to access any properties of the widgets.

Implementation

List<W> get discoveredWidgets => _widgets.values.whereType<W>().toList();