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();
}
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.5.0/dart-html/DomPoint/DomPoint.html