fromString method

MakiIcons? fromString(
  1. String? value
)

Implementation

MakiIcons? fromString(String? value) {
  if (value == null) return null;
  try {
    return MakiIcons.values.firstWhere((e) => e.value == value);
  } catch (e) {
    return null;
  }
}