OnNavigateBackScope constructor

const OnNavigateBackScope({
  1. Key? key,
  2. required bool? onNavigateBack(),
  3. required Widget child,
})

Creates a widget that registers a callback to veto attempts by the user to navigate back.

Implementation

const OnNavigateBackScope({
  Key? key,
  required this.onNavigateBack,
  required this.child,
}) : super(key: key);