fromValue static method

FeedReadState? fromValue(
  1. String? value
)

Returns the enum value for the given string, or null if not found.

Android: FeedReadState.get(String value)

Implementation

static FeedReadState? fromValue(String? value) {
  if (value == null) return null;
  for (final state in values) {
    if (state.value == value) {
      return state;
    }
  }
  return null;
}