shouldAcceptNavigation method
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);
}