onWillPop property

Future<Couple<bool, Object?>> Function()? onWillPop
final

Callback when trying to navigate back to the previous page. The page will be popped if the returned Couple.first is true. The Couple.second is the result returned to the previous page.

Implementation

final Future<Couple<bool, Object?>> Function()? onWillPop;