Last active
August 4, 2021 13:59
-
-
Save BrianMwas/c4fee723fc7fc6f20f457b7e00ffb957 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class FavoritesBinding extends Bindings { | |
@override | |
void dependencies() { | |
// Lazily inject the dependency and only use the dependency when needed. | |
Get.lazyPut(() => FavoritesController()); | |
} | |
} | |
/* | |
***Other Code** | |
*/ | |
GetPage( | |
page: () => Favorites(), | |
binding: FavoritesBinding(), | |
middleware: [ | |
AuthMiddleware(), | |
] | |
), | |
/** | |
Other code | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment