offset method Null safety

void offset(
  1. T dx,
  2. T dy
)

Implementation

void offset(T dx, T dy) {
  left = left + dx as T;
  top = top + dy as T;
}