BackButtonListenerModifier constructor

const BackButtonListenerModifier({
  1. Key? key,
  2. Widget? child,
  3. Key? modifierKey,
  4. required ValueGetter<Future<bool>> onBackButtonPressed,
})

Creates a BackButtonListener widget .

The child and onBackButtonPressed arguments must not be null.

Implementation

const BackButtonListenerModifier({
  super.key,
  super.child,
  super.modifierKey,
  required this.onBackButtonPressed,
});