SelectorToSnapshot<W extends Widget> extension

Extension on WidgetSelector<W> to create snapshots of the current widget selection.

Provides methods to create a snapshot of the widgets currently selected by the selector, which can then be used for further analysis or assertions.

on

Properties

multi WidgetSelector<W>
Modifies the selector to match an unconstrained number of widgets.
no setter
single WidgetSelector<W>
Modifies the selector to match at most one widget.
no setter

Methods

snapshot() WidgetSnapshot<W>
Creates a snapshot of the currently selected widgets.