Created
June 19, 2021 16:03
-
-
Save shaon2016/843493ca64f1ef6e5a16bc8f9a6cbeff to your computer and use it in GitHub Desktop.
BaseController for all GetXController
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
import 'package:clean_architecture/core/network/rest_client.dart'; | |
import 'package:get/get.dart'; | |
class BaseController extends GetxController { | |
late RestClient restClient; | |
@override | |
onInit() { | |
super.onInit(); | |
restClient = Get.find(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment