nthDaysOfWeek method

  1. @override
String nthDaysOfWeek(
  1. Iterable<int> occurrences,
  2. String daysOfWeek
)
override

Implementation

@override
String nthDaysOfWeek(Iterable<int> occurrences, String daysOfWeek) {
  if (occurrences.isEmpty) return daysOfWeek;

  final ordinals = list(
    occurrences.map(ordinal).toList(),
    ListCombination.conjunctiveShort,
  );
  return 'the $ordinals $daysOfWeek';
}