shouldAcceptNavigation method

  1. @override
bool shouldAcceptNavigation(
  1. T subNavigation,
  2. DeepNavigationNode<T>? root
)
override

Checks whether the given subNavigation should accepted into the root. If root is null, that means that it's at the base layer.

Implementation

@override
bool shouldAcceptNavigation(T subNavigation, DeepNavigationNode<T>? root) {
  return evaluationFunction(subNavigation, root);
}