Skip to content

Commit

Permalink
Migrate to Dart 3 (#82)
Browse files Browse the repository at this point in the history
* migrate to dart 3

* fix a small issue related to dart 3
  • Loading branch information
rasitayaz authored Jun 13, 2023
1 parent c05d9d7 commit 3371159
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion copy_with_extension/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ repository: https://github.com/numen31337/copy_with_extension
issue_tracker: https://github.com/numen31337/copy_with_extension/issues

environment:
sdk: ">=2.12.0 <3.0.0"
sdk: ">=3.0.0 <4.0.0"

dependencies:
meta: ^1.8.0
Expand Down
2 changes: 1 addition & 1 deletion copy_with_extension_gen/lib/src/field_info.dart
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class ConstructorParameterInfo extends FieldInfo {
) {
final field = classElement.fields
.where((e) => e.name == fieldName)
.fold(null, (previousValue, element) => element);
.fold<FieldElement?>(null, (previousValue, element) => element);
if (field == null) return null;

return FieldInfo(
Expand Down
2 changes: 1 addition & 1 deletion copy_with_extension_gen/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ homepage: https://github.com/numen31337/copy_with_extension/tree/master/copy_wit
issue_tracker: https://github.com/numen31337/copy_with_extension/issues

environment:
sdk: ">=2.12.0 <3.0.0"
sdk: ">=3.0.0 <4.0.0"

dependencies:
analyzer: ">=2.0.0 <6.0.0"
Expand Down

0 comments on commit 3371159

Please sign in to comment.