exploreSectionFromArgs function

ExploreSection<Explorable> exploreSectionFromArgs(
  1. ExploreSectionArguments args
)

Implementation

ExploreSection exploreSectionFromArgs(ExploreSectionArguments args) {
  switch (args.type) {
    case ExploreSectionType.Campaign:
      return CampaignExploreSection(args);
    case ExploreSectionType.Learning:
      return LearningResourceExploreSection(args);
    case ExploreSectionType.Action:
      return ActionExploreSection(args);
    case ExploreSectionType.News:
      return NewsExploreSection(args);
  }
}