PopBehavior constructor

const PopBehavior({
  1. bool escapeEnabled = true,
  2. bool backspaceEnabled = false,
  3. String? customPopKey,
  4. bool canPop(
    1. Route
    )?,
  5. Future<bool> onPopInvoked(
    1. Route
    )?,
})

Creates a pop behavior configuration.

Implementation

const PopBehavior({
  this.escapeEnabled = true,
  this.backspaceEnabled = false,
  this.customPopKey,
  this.canPop,
  this.onPopInvoked,
});