You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Extremely important if you use GetIt: ALWAYS use the same style to import your project files either as relative paths OR as package which I recommend. DON'T mix them because currently Dart treats types imported in different ways as two different types although both reference the same file.
However I'm wondering if this issue has been solved (and released in possibly Dart 2.1) via dart-lang/sdk#33076
My tools tend to suggest relative imports at times and I'm curious if I actually need to be diligent about this.
Is it no longer an issue?
The text was updated successfully, but these errors were encountered:
Interesting catch! From what I read this shouldn't now longer be a problem. Could you give it a try and test if it works if you register a type via package but get it in another file with relative import?
The docs warn
However I'm wondering if this issue has been solved (and released in possibly Dart 2.1) via
dart-lang/sdk#33076
My tools tend to suggest relative imports at times and I'm curious if I actually need to be diligent about this.
Is it no longer an issue?
The text was updated successfully, but these errors were encountered: