routeOrUnknown method

GetPage routeOrUnknown(
  1. GetPage onUnknow
)

Implementation

GetPage routeOrUnknown(GetPage onUnknow) =>
    currentTreeBranch.isEmpty ? onUnknow : currentTreeBranch.last;