TF-439 Implement get firebase subscription

This commit is contained in:
dab246
2022-11-29 15:34:06 +07:00
committed by Dat H. Pham
parent 38a6067319
commit 4de25a778c
13 changed files with 231 additions and 28 deletions
+9 -1
View File
@@ -24,4 +24,12 @@ bool canBack(BuildContext context) {
BuildContext? get currentContext => Get.context;
BuildContext? get currentOverlayContext => Get.overlayContext;
BuildContext? get currentOverlayContext => Get.overlayContext;
T? getBinding<T>() {
if (Get.isRegistered<T>()) {
return Get.find<T>();
} else {
return null;
}
}