platformTypeFromString function

PlatformType platformTypeFromString(
  1. String value
)

Implementation

PlatformType platformTypeFromString(String value) {
  return PlatformType.values.firstWhere(
      (e) => e.toString().split('.')[1].toUpperCase() == value.toUpperCase());
}