dependencies method

  1. @override
void dependencies()
override

The method used to define and register the dependencies for this binding.

It will create an instance of GooglePlaceAutocompleteController and register it with the GetX dependency injection system. The instance will be lazily instantiated, meaning it will only be created when it is first requested.

Implementation

@override
void dependencies() {
  Get.lazyPut<GooglePlaceAutocompleteController>(
      () => GooglePlaceAutocompleteController());
}