bottom property

T get bottom

The y-coordinate of the bottom edge of the rectangle. Calculated as top + height.

Implementation

T get bottom => (top + height) as T;
set bottom (num newBottom)

Sets the y-coordinate of the bottom edge of the rectangle.

Implementation

set bottom(num newBottom) => top = (newBottom - height) as T;