Uri uriBuilder(bool https, String apiEndpoint, dynamic path) { return https ? Uri.https(apiEndpoint, path) : Uri.http(apiEndpoint, path); }