The Get.put Method

Learn to initialize dependencies using Get.put and configure its options.

Introduction and implementation

Get.put is the method used to initialize a dependency for the first time. This method makes a dependency available throughout the widget tree, which can then be accessed via Get.find.

Get.put internally calls Get.find, which injects the dependency immediately into the class. This means that we do not have to call Get.find ourselves to use that dependency in the class.

Get hands-on with 1400+ tech skills courses.