-
Notifications
You must be signed in to change notification settings - Fork 701
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
Conditional imports is not covered in the language tour #1569
Comments
@kwalrath what the needs-info part? From the language teams perspective this is a fully supported feature. |
I think I was waiting to hear if this was a stable feature. |
Hmm, I might have pinged the wrong LRN, sorry.. @lrhn, is this something that is stable, and can we encourage developers to adopt it? |
Related issue (where I just commited to getting more info from lang. team): #1750 |
here is an example project that i use this with for desktop, mobile and web: https://github.com/AppleEducate/moor_shared |
Great example @AppleEducate, it solved my issue in flutter/flutter#40488 |
No problem 😎💪🏻 |
This is a shipped and specified feature, and there are no current plans to deprecate it. |
cc @lrhn |
I see no problem with the conditional export. My guess is that the problem lies elsewhere. |
@lrhn Yes it does: It's never printed. |
Should I open a new issue for this? |
Yes, please open a new issue (the present bug tracked documentation), with the smallest set of repro steps you have. Please open it in the SDK repo: https://github.com/dart-lang/sdk/issues |
Page URL: https://www.dartlang.org/guides/language/language-tour
Page source: src/_guides/language/language-tour.md.
Conditional imports is not covered by the language tour. Conditional imports are usually done like:
It would be nice to cover this in the language tour as the specification is hard to read. A few good examples of what you can make conditions on would also be useful, as this is not obvious.
@LRN, please correct me if this is not a stable language feature?
The text was updated successfully, but these errors were encountered: