How does the dio package in flutter joins the base-url with url and apikey in this code. Iam bit confused with the working of dio package can somebody please help me
If I have a URL of this kind
BaseURL = "https://newsapi.org/"
apkikey = "256c198308134b578e338737a895"
url= "v2/top-headlines?country=us"
How will dio package join the above three components to produce a url of this kind as shown below
https://newsapi.org/v2/top-headlines?country=us&apikey=256c198308134b578e338737a895
Any help would be appreciated