shouldAcceptNavigation method

  1. @override
bool shouldAcceptNavigation(
  1. T subNavigation,
  2. DeepNavigationNode? 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? root) {
  return allowedSubNavigation.contains(subNavigation);
}