topLeft property Null safety

Point<T> topLeft

Implementation

@override
Point<T> get topLeft => Point<T>(left, top);
void topLeft=(Point<T> point)

Implementation

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