Optional callback to determine if popping is allowed for the current route. If null, the navigator's default canPop logic is used.
null
final bool Function(Route<dynamic>)? canPop;