fromName static method

PlatformExact fromName(
  1. String name
)

Implementation

static PlatformExact fromName(String name) {
  return PlatformExact.values.firstWhereOrNull((e) {
        return e.name.toLowerCase() == name.toLowerCase();
      }) ??
      PlatformExact.unknown;
}