-
Notifications
You must be signed in to change notification settings - Fork 82
Start migration of WebDev to null-safety #1756
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Elliott! I left a few comments.
webdev/lib/src/pubspec.dart
Outdated
final bool _missingDependency; | ||
|
||
const PackageExceptionDetails._(this.error, | ||
{this.description, bool missingDependency}) | ||
{this.description, bool? missingDependency}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can this be non-null with default value "false" instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
webdev/lib/src/pubspec.dart
Outdated
return PubspecLock(packages); | ||
} | ||
|
||
List<PackageExceptionDetails> checkPackage( | ||
String pkgName, VersionConstraint constraint, | ||
{String forArgument, bool requireDirect}) { | ||
{String? forArgument, bool? requireDirect}) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this be non-null with default value "false"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done! Though the default value should be true not false
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Elliott, LGTM!
Work towards #1640