ExplorePageViewModel constructor

ExplorePageViewModel(
  1. String title,
  2. List<ExploreSectionArguments> sections,
  3. {Map<String, dynamic>? baseParams}
)

Implementation

ExplorePageViewModel(this.title, List<ExploreSectionArguments> sections,
    {Map<String, dynamic>? baseParams}) {
  // Add the base parameters to the sections
  this.sections = sections.map((args) {
    return exploreSectionFromArgs(args.addBaseParams(baseParams ?? {}));
  }).toList();
}