setTo method Null safety

void setTo(
  1. T rx,
  2. T ry,
  3. T rwidth,
  4. T rheight
)

Implementation

void setTo(T rx, T ry, T rwidth, T rheight) {
  left = rx;
  top = ry;
  width = rwidth;
  height = rheight;
}