blockWhen property
A predicate that decides whether back navigation should be blocked for a given state.
Return true to block popping (i.e. canPop == false),
return false to allow popping (i.e. canPop == true).
Implementation
final bool Function(S state) blockWhen;