Untitled

mail@pastecode.io avatar
unknown
dart
a year ago
2.0 kB
1
Indexable
  CategoriesSelections lastSelections = CategoriesSelections(
                      type: categoriesNotifier.selections.type,
                      id: categoriesNotifier.selections.id,
                      keyword: categoriesNotifier.selections.keyword,
                    );
                    await categoriesNotifier.setLastSelections(
                      lastSelections,
                    );
                    print(categoriesNotifier.lastSelectionType);
                    categoriesNotifier.selections.id =
                        widget.props.podcastInfo.data?.podcasters?.first.id ??
                            0;
                    // book.authors![indexPath].id;

                    categoriesNotifier.selections.type = 'Podcaster';
                    categoriesNotifier.resetPagination();
                    categoriesNotifier.categories.clear();
                    await categoriesNotifier.getAllCategories(
                      categoriesNotifier.selections,
                    );
                    log('--------------------------------------');
                    log(categoriesNotifier.contributor!.toJson().toString());
                    log('--------------------------------------');
                    log(categoriesNotifier.subcategoriesBooks.first.toString());
                    log('--------------------------------------');
                    await Navigator.of(context).push(
                      MaterialPageRoute(
                        builder: (BuildContext context) =>
                            IntegratedFollowingDetailsPage(
                          contributor: categoriesNotifier.contributor ??
                              ContributorCategories(),
                          contributorBooks:
                              categoriesNotifier.subcategoriesBooks,
                          backToContributor: false,
                        ),
                      ),
                    );