route property

FlowerPage? get route

Implementation

FlowerPage? get route =>
    currentTreeBranch.isEmpty ? null : currentTreeBranch.last;
set route (FlowerPage? getPage)

Implementation

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