matchChipSelected method

Future<Widget> matchChipSelected(
  1. dynamic selector, {
  2. required bool selected,
})

Expect that a Chip is selected or not selected.

Note that in addition to the standard options, the selector can be a list of other selectors. With chips, it is very common to verify that several of them are on or off at the same time, and passing in a list is a concise way to do so.

Implementation

Future<Widget> matchChipSelected(dynamic selector, {required bool selected}) async {
  return matchWidgetValue(selector, ft.equals(selected), extraFrames: 1);
}