topRight property Null safety

Point<T> topRight

Implementation

@override
Point<T> get topRight => Point<T>(right, top);
void topRight=(Point<T> point)

Implementation

set topRight(Point<T> point) {
  width = point.x - left as T;
  height = height + top - point.y as T;
  top = point.y;
}