DomPointReadOnly constructor

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

Implementation

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