getCenterPosition method

Offset getCenterPosition(
  1. double fullWidth,
  2. double fullHeight,
  3. double calendarWidth,
  4. double calendarHeight,
)

Implementation

Offset getCenterPosition(double fullWidth, double fullHeight,
    double calendarWidth, double calendarHeight) {
  return Offset(
      (fullWidth - calendarWidth) / 2, (fullHeight - calendarHeight) / 2);
}