Skip to content

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

Merged
merged 2 commits into from
Oct 7, 2022

Conversation

elliette
Copy link
Contributor

@elliette elliette commented Oct 6, 2022

Work towards #1640

Copy link
Contributor

@annagrin annagrin left a 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.

final bool _missingDependency;

const PackageExceptionDetails._(this.error,
{this.description, bool missingDependency})
{this.description, bool? missingDependency})
Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

return PubspecLock(packages);
}

List<PackageExceptionDetails> checkPackage(
String pkgName, VersionConstraint constraint,
{String forArgument, bool requireDirect}) {
{String? forArgument, bool? requireDirect}) {
Copy link
Contributor

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"?

Copy link
Contributor Author

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

Copy link
Contributor

@annagrin annagrin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Elliott, LGTM!

@elliette elliette merged commit b175072 into dart-lang:master Oct 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants