ExplorePageViewModel constructor
- String title,
- List<
ExploreSectionArguments> sections, - {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();
}