Open scopendo opened 7 months ago
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', };
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?
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: