static AlertKind? named(String name) { for (final k in values) { if (k.name == name) return k; } return null; }