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