getNewsTitle static method
Implementation
static String getNewsTitle(NewsType newsType) {
switch (newsType) {
case NewsType.all_news:
return 'All News';
case NewsType.trending:
return 'Trending';
case NewsType.top_stories:
return 'Top Stories';
case NewsType.national:
return 'National';
case NewsType.business:
return 'Business';
case NewsType.politics:
return 'Politics';
case NewsType.sports:
return 'Sports';
case NewsType.technology:
return 'Technology';
case NewsType.startups:
return 'Startups';
case NewsType.entertainment:
return 'Entertainment';
case NewsType.hatke:
return 'Hatke';
case NewsType.education:
return 'Education';
case NewsType.world:
return 'World';
case NewsType.automobile:
return 'Automobile';
case NewsType.science:
return 'Science';
case NewsType.travel:
return 'Travel';
case NewsType.miscellaneous:
return 'Miscellaneous';
case NewsType.fashion:
return 'Fashion';
default:
return 'All News';
}
}