isParallelogram property

bool get isParallelogram

Whether this is a parallelogram

Both pairs of opposite sides are parallel.

Implementation

bool get isParallelogram {
  return AB.isParallelTo(CD) && BC.isParallelTo(DA);
}