The GetView and GetWidget Classes

Simplifying dependency access

GetX provides an excellent API for segregating dependency injection into multiple classes and hiding it from the presentation layer. However, we still need to use Get.find to access the dependency in the widget. GetX takes it a step further by introducing the GetView and GetWidget widgets.

GetView

GetView is a stateless widget that internally declares a controller for us. We can readily use the controller instance without calling Get.find. Just provide the type of controller we wish to access, like this:

Get hands-on with 1400+ tech skills courses.