Returns the last GetPage in the current tree branch, or null if empty.
null
GetPage? get route => currentTreeBranch.isNotEmpty ? currentTreeBranch.last : null;
Sets the last GetPage in the current tree branch.
set route(GetPage? getPage) { if (getPage == null) return; if (currentTreeBranch.isEmpty) { currentTreeBranch.add(getPage); } else { currentTreeBranch[currentTreeBranch.length - 1] = getPage; } }