onWillPop property

Future<bool> Function()? onWillPop
final

Optional per-page back button handler Return true to allow pop, false to block

Implementation

final Future<bool> Function()? onWillPop;