isTrapezoid property

bool get isTrapezoid

Whether this is a trapezoid (trapezium)

At least one pair of opposite sides is parallel.

Implementation

bool get isTrapezoid {
  return AB.isParallelTo(CD) || BC.isParallelTo(DA);
}