DomQuad constructor

DomQuad(
  1. [Map? p1,
  2. Map? p2,
  3. Map? p3,
  4. Map? p4]
)

Implementation

factory DomQuad([Map? p1, Map? p2, Map? p3, Map? p4]) {
  if (p4 != null) {
    var p1_1 = convertDartToNative_Dictionary(p1);
    var p2_2 = convertDartToNative_Dictionary(p2);
    var p3_3 = convertDartToNative_Dictionary(p3);
    var p4_4 = convertDartToNative_Dictionary(p4);
    return DomQuad._create_1(p1_1, p2_2, p3_3, p4_4);
  }
  if (p3 != null) {
    var p1_1 = convertDartToNative_Dictionary(p1);
    var p2_2 = convertDartToNative_Dictionary(p2);
    var p3_3 = convertDartToNative_Dictionary(p3);
    return DomQuad._create_2(p1_1, p2_2, p3_3);
  }
  if (p2 != null) {
    var p1_1 = convertDartToNative_Dictionary(p1);
    var p2_2 = convertDartToNative_Dictionary(p2);
    return DomQuad._create_3(p1_1, p2_2);
  }
  if (p1 != null) {
    var p1_1 = convertDartToNative_Dictionary(p1);
    return DomQuad._create_4(p1_1);
  }
  return DomQuad._create_5();
}