SolError? error(String name) { for (final e in errors) { if (e.name == name) return e; } return null; }