list method

  1. @override
String list(
  1. List<String> items,
  2. ListCombination combination
)
override

Implementation

@override
String list(List<String> items, ListCombination combination) {
  final (two, end) = switch (combination) {
    ListCombination.conjunctiveShort => (' & ', ' & '),
    ListCombination.conjunctiveLong => (' and ', ', and '),
    ListCombination.disjunctive => (' or ', ', or '),
  };
  return RruleL10n.defaultList(items, two: two, end: end);
}