canPop property

bool Function(Route)? canPop
final

Optional callback to determine if popping is allowed for the current route. If null, the navigator's default canPop logic is used.

Implementation

final bool Function(Route<dynamic>)? canPop;