Skip to content

Instantly share code, notes, and snippets.

@shaon2016
Created June 19, 2021 16:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shaon2016/843493ca64f1ef6e5a16bc8f9a6cbeff to your computer and use it in GitHub Desktop.
Save shaon2016/843493ca64f1ef6e5a16bc8f9a6cbeff to your computer and use it in GitHub Desktop.
BaseController for all GetXController
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