from static method

OrderedListStyle? from(
  1. String? style
)

Implementation

static OrderedListStyle? from(String? style) {
  if (style == null) return null;
  if (style.length != 1) {
    style =
        style.trim().toLowerCase().replaceAll(" ", "_").replaceAll("-", "_");
  }
  return values.where((e) {
    return e.sign == style || e.name == style;
  }).firstOrNull;
}