onWillPop property

FutureOr<bool> Function()? onWillPop
final

返回拦截回调,返回 true 表示允许退出。

Implementation

final FutureOr<bool> Function()? onWillPop;