of<C extends Cube> static method
Used to return Cube that was provided
Implementation
static C? of<C extends Cube>(BuildContext context) {
return context.dependOnInheritedWidgetOfExactType<CubeProvider<C>>()?.cube;
}