Skip to content

Commit

Permalink
Support latest package:analyzer (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
xvrh authored Jun 18, 2022
1 parent ca8194a commit 8a781f4
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 531 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ _*
!.gitignore
!.github

pubspec.lock

doc/api/
*.iml
build/
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.2.1

- Support latest version of dependencies

## 0.2.0

- Support null-safety
Expand Down
6 changes: 3 additions & 3 deletions example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ packages:
name: _fe_analyzer_shared
url: "https://pub.dartlang.org"
source: hosted
version: "38.0.0"
version: "40.0.0"
analyzer:
dependency: transitive
description:
name: analyzer
url: "https://pub.dartlang.org"
source: hosted
version: "3.4.1"
version: "4.1.0"
args:
dependency: transitive
description:
Expand Down Expand Up @@ -203,7 +203,7 @@ packages:
path: ".."
relative: true
source: path
version: "0.2.0"
version: "0.2.1"
http_multi_server:
dependency: transitive
description:
Expand Down
4 changes: 1 addition & 3 deletions lib/src/utils.dart
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@


extension IterableExtension<T> on Iterable<T> {
T? firstWhereOrNull(bool Function(T element) test) {
for (var element in this) {
if (test(element)) return element;
}
return null;
}
}
}
Loading

0 comments on commit 8a781f4

Please sign in to comment.