getCube<C extends Cube> method

C? getCube<C extends Cube>()

Implementation

C? getCube<C extends Cube>() => Cubes.of<C>(this);