DomError constructor

DomError(
  1. String name, [
  2. String? message
])

Implementation

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