discontinuedPackage refreshed has been discontinued and replaced by getxify.

route property

GetPage? get route

Returns the last GetPage in the current tree branch, or null if empty.

Implementation

GetPage? get route =>
    currentTreeBranch.isNotEmpty ? currentTreeBranch.last : null;
set route (GetPage? getPage)

Sets the last GetPage in the current tree branch.

Implementation

set route(GetPage? getPage) {
  if (getPage == null) return;
  if (currentTreeBranch.isEmpty) {
    currentTreeBranch.add(getPage);
  } else {
    currentTreeBranch[currentTreeBranch.length - 1] = getPage;
  }
}