byName static method

IconPack? byName(
  1. String? pack
)

Get the IconPack by its name

Implementation

static IconPack? byName(String? pack) {
  if (pack == null) return null;

  return IconPack.values.firstWhereOrNull((p) => p.name == pack);
}