calculateCenterOffset static method

Offset calculateCenterOffset({
  1. required double width,
  2. required double height,
})

Calculates the center offset for a given size.

Implementation

static Offset calculateCenterOffset(
    {required double width, required double height}) {
  return Offset(width / 2, height / 2);
}