tryFromValue static method

RSIMPlatform? tryFromValue(
  1. int value
)

Implementation

static RSIMPlatform? tryFromValue(int value) {
  for (final platform in values) {
    if (platform.value == value) return platform;
  }
  return null;
}