-
Notifications
You must be signed in to change notification settings - Fork 384
Closed
Labels
next-breaking-releaseIssues that are worth doing but need to wait for a breaking version bumpIssues that are worth doing but need to wait for a breaking version bump
Description
The dynamic url
which may be either a String
or Uri
is not an idiomatic pattern in Dart 2. You lose static checking and are forced to read the doc comment to get help with usage that is normally provided in your IDE. The migration would be easy, shift the Uri.parse
call to the call site instead of inside the library code.
The downside here is that there is potentially a lot of code to migrate since this is such a widely used package. That is mitigated somewhat by the fact that you'll get static checking for the migration in the vast majority of cases, only dynamic invocations would be runtime failures.
Metadata
Metadata
Assignees
Labels
next-breaking-releaseIssues that are worth doing but need to wait for a breaking version bumpIssues that are worth doing but need to wait for a breaking version bump