stackLocal property

int get stackLocal
inherited

判断页面当前处于栈内位置 如果不存在则为-1

Implementation

int get stackLocal {
  final stack = RouteKit.instance.stack;
  return stack.indexWhere((page) => page.key == _key);
}