inflate method Null safety

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

Implementation

void inflate(T dx, T dy) {
  width = width + dx as T;
  height = height + dy as T;
}