DomPoint constructor

DomPoint(
  1. [num? x,
  2. num? y,
  3. num? z,
  4. num? w]
)

Implementation

factory DomPoint([num? x, num? y, num? z, num? w]) {
  if (w != null) {
    return DomPoint._create_1(x, y, z, w);
  }
  if (z != null) {
    return DomPoint._create_2(x, y, z);
  }
  if (y != null) {
    return DomPoint._create_3(x, y);
  }
  if (x != null) {
    return DomPoint._create_4(x);
  }
  return DomPoint._create_5();
}