isVertical property

bool get isVertical

Whether this line segment is vertical (same x for both endpoints)

Implementation

bool get isVertical => a.x == b.x;