pushPathItem<T> method

Future pushPathItem<T>(
  1. List<YimRouterPathItem> items, {
  2. int pop = 0,
})

Implementation

Future pushPathItem<T>(List<YimRouterPathItem> items, {int pop = 0}) async {
  while (pop-- > 0) {
    _currentRouterPath.pop();
  }
  _currentRouterPath.pushMultipleItem(items);
  notifyListeners();
  return await items.last.pageResult.future;
}