urlForStories function
Implementation
Uri urlForStories(NewsType newsType) {
return Uri.parse(newsType == NewsType.topStories
? "https://hacker-news.firebaseio.com/v0/topstories.json"
: "https://hacker-news.firebaseio.com/v0/newstories.json");
}