calculatePos method

Offset calculatePos(
  1. double posX,
  2. double posY,
  3. double textW,
  4. double textH,
)

Implementation

Offset calculatePos(double posX, double posY, double textW, double textH) {
  return Offset(posX - textW / 2, posY - textH / 2);
}