import 'package:get/get.dart'; class ApiProvider extends GetConnect { @override void onInit() { httpClient.baseUrl = 'YOUR-API-URL'; } }