initNetworkUtils function
Initialize the network utilities
Implementation
void initNetworkUtils({
required String baseUrl,
bool debug = false,
}) async {
BASE_URL = baseUrl;
isDebugMode.value = debug;
// Initialize GetStorage
try {
await GetStorage.init();
} catch (e) {
log("Error initializing GetStorage: $e");
}
// Register app state controller
if (!Get.isRegistered<AppStateController>()) {
Get.put(AppStateController());
}
}