navigateBack method

dynamic navigateBack(
  1. BuildContext context
)

Implementation

navigateBack(BuildContext context) {
  if (service.model.data is List<HelpdeskSection>) service.getCategories();
  if (service.model.data is List<HelpdeskArticle>) {
    service.getSectionsForCategory(service.model.category!);
  }
  if (service.model.data is HelpdeskArticle) {
    service.getArticlesForSection(service.model.section!);
  }
}