We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently currentUniversalPlatform is internal to the universal_platform.dart package, requiring the use of the UniversalPlatform.isXXX booleans.
currentUniversalPlatform
universal_platform.dart
UniversalPlatform.isXXX
It would be useful if currentUniversalPlatform was exported so that apps could use a switch statement:
final xxx = switch (currentUniversalPlatform` { UniversalPlatformType.Web => 'web', UniversalPlatformType.IOS => 'ios', UniversalPlatformType.Android => 'android', _ => 'something else', };
The text was updated successfully, but these errors were encountered:
I was going to add a PR for this but can see that it's already exported on the master branch. Is it possible to publish an updated version to pub.dev?
Sorry, something went wrong.
No branches or pull requests
Currently
currentUniversalPlatform
is internal to theuniversal_platform.dart
package, requiring the use of theUniversalPlatform.isXXX
booleans.It would be useful if
currentUniversalPlatform
was exported so that apps could use a switch statement:The text was updated successfully, but these errors were encountered: