multiple method

String multiple(
  1. int count,
  2. String verb,
  3. String described, [
  4. List<String> where = const [],
])

The refusal that has to be usable in one step.

It names the matches. A caller told only that two things matched has to go and look before it can choose, and the look is another round trip against a screen that may have moved. where is one line per match, in the order nth indexes them, so the number in front of a box is the index that picks it.

Implementation

String multiple(
  int count,
  String verb,
  String described, [
  List<String> where = const [],
]) =>
    '$count widgets match $described, and `$prefix$verb` needs one'
    '${where.isEmpty ? '. ' : ':\n${where.join('\n')}\n'}'
    '$narrowHint';