from static method
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;
}