corners property

List<Point> get corners

The four corner points as a list in order: top-left, top-right, bottom-right, bottom-left.

Useful for iteration or when you need all corners at once.

Implementation

List<Point> get corners => [topLeft, topRight, bottomRight, bottomLeft];