Dependency injection is all about passing objects to a class through either a constructor or a setter function.
So, if we use GetX then for dependency injection, the way would be to use Get.put().
But we aren't passing the object through any function to the following class so how can this be classified as "dependency injection"?
class HomePage extends StatelessWidget {
Controller controller = Get.put(Controller());
}
Now, if we have to pass another controller to this class from another class (using GetX), how do we do it?