xyCenter method Null safety

dynamic xyCenter()

Implementation

static xyCenter() => XYCenterGravity();