fromString static method
Implementation
static Platforms fromString(String platform) {
switch (platform) {
case _platformIOS:
return Platforms.iOS;
case _platformAndroid:
return Platforms.android;
default:
throw Exception(
"Platforms.fromString() $platform not a valid platform type.");
}
}