copyWithCenter method

Rect copyWithCenter(
  1. Offset offset
)

Same size, new center.

Implementation

Rect copyWithCenter(Offset offset) =>
    Rect.fromCenter(center: offset, width: width, height: height);