CubeGenerator constructor Null safety

CubeGenerator()