Gravity constructor Null safety

Gravity()