apply method

Rect apply(
  1. Rect base
)

base displaced by the current delta: shifted by offset, scaled about its center by scaleX and scaleY.

Implementation

Rect apply(Rect base) {
  if (isIdentity) {
    return base;
  }
  return .fromCenter(
    center: base.center + _offset,
    width: base.width * _scaleX,
    height: base.height * _scaleY,
  );
}