fromValue static method

BlogPostSortOrder fromValue(
  1. String value
)

Implementation

static BlogPostSortOrder fromValue(String value) =>
    values.firstWhere((e) => e.value == value,
        orElse: () => BlogPostSortOrder._(value));