onWillPop property

Future<bool> Function()? onWillPop
final

Callback when tried to navigate back to previous page, it will be popped if the return was true

Implementation

final Future<bool> Function()? onWillPop;