buildSections method
Implementation
List<ExploreSection> buildSections() {
return this.args.sections.map((sectionArgs) {
switch (sectionArgs.type) {
case ExploreSectionType.Action:
return ActionExploreSection(sectionArgs);
case ExploreSectionType.Learning:
return LearningResourceExploreSection(sectionArgs);
case ExploreSectionType.Campaign:
return CampaignExploreSection(sectionArgs);
case ExploreSectionType.News:
return NewsExploreSection(sectionArgs);
}
}).toList() as List<ExploreSection>;
}