Skip to content

Commit

Permalink
Switch from .whereNotNull() to .nonNulls
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasWanke committed Jan 6, 2025
1 parent 4740e29 commit d1a7c35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/src/codecs/text/encoder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ class RecurrenceRuleToTextEncoder extends Converter<RecurrenceRule, String> {
variant: InOnVariant.also,
combination: ListCombination.disjunctive,
),
].whereNotNull().toList();
].nonNulls.toList();
if (limits.isNotEmpty) {
output.add(l10n.list(limits, ListCombination.conjunctiveLong));
}
Expand Down
3 changes: 1 addition & 2 deletions lib/src/iteration/date_set.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import 'package:collection/collection.dart';
import 'package:meta/meta.dart';
import 'package:time/time.dart';

Expand Down Expand Up @@ -57,7 +56,7 @@ class DateSet {
}

Iterable<DateTime> get includedDates =>
start.until(end).map((i) => this[i]).whereNotNull();
start.until(end).map((i) => this[i]).nonNulls;
}

DateSet makeDateSet(RecurrenceRule rrule, DateTime base) {
Expand Down

0 comments on commit d1a7c35

Please sign in to comment.