fromValue static method

PushPlatforms? fromValue(
  1. String value
)

Implementation

static PushPlatforms? fromValue(String value) {
  for (final option in PushPlatforms.values) {
    if (option.type == value) {
      return option;
    }
  }
  return null;
}