enabled property

bool enabled
final

Whether this widget's ability to handle system back gestures is enabled or disabled.

When false, there will be no effect on system back gestures. If provided, onPop will still be called.

This can be used, for example, when the nested Navigator is no longer active but remains in the widget tree, such as in an inactive tab.

Defaults to true.

Implementation

final bool enabled;