parse static method

PlatformType parse(
  1. String? raw
)

Implementation

static PlatformType parse(String? raw) {
  return values.firstWhere(
    (e) => e.slug == raw,
    orElse: () => PlatformType.nativeOrOthers,
  );
}