Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@85e6279cec87321a52edac9c87bce653a07cf6c2
- uses: dart-lang/setup-dart@c8d9f105c780f626b21f6929fec7e8162014f5ad
- uses: dart-lang/setup-dart@fe21d53e1e27c70b5c8e8273d4bcc0d23c071577
with:
sdk: dev
- name: Install dependencies
Expand All @@ -25,7 +25,7 @@ jobs:
sdk: [ stable, beta, dev ]
steps:
- uses: actions/checkout@85e6279cec87321a52edac9c87bce653a07cf6c2
- uses: dart-lang/setup-dart@c8d9f105c780f626b21f6929fec7e8162014f5ad
- uses: dart-lang/setup-dart@fe21d53e1e27c70b5c8e8273d4bcc0d23c071577
with:
sdk: ${{ matrix.sdk }}
- name: Install dependencies
Expand Down
2 changes: 1 addition & 1 deletion lib/src/iterable.dart
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ extension CollectionExtensions<T> on Iterable<T?>? {
/// print(destination); // prints: [1, 3]
/// ```
C filterNotNullTo<C extends List<T>>(C destination) {
if (this.isNullOrEmpty) return destination;
if (isNullOrEmpty) return destination;
for (final element in this!) {
if (element != null) {
destination.add(element);
Expand Down
Loading