urlForStories function

Uri urlForStories(
  1. NewsType newsType
)

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");
}