factory DomError(String name, [String? message]) { if (message != null) { return DomError._create_1(name, message); } return DomError._create_2(name); }