QuantitySelectors<W extends Widget> extension
Extension on WidgetSelector<W> providing methods to specify the quantity of widgets to select. These methods allow setting specific quantity constraints for the selection of widgets.
- on
Methods
-
amount(
int n) → WidgetSelector< W> -
Sets the selector to match exactly
n
widgets. -
atLeast(
int n) → WidgetSelector< W> -
Sets the selector to match at least
n
widgets. -
atMost(
int n) → WidgetSelector< W> -
Sets the selector to match at most
n
widgets. -
overrideQuantityConstraint(
QuantityConstraint constraint) → WidgetSelector< W> -
Overrides the current quantity constraint with a new
constraint
.