onWillPop method

  1. @override
Future<bool> onWillPop()
override

是否可以返回,用于拦截返回按钮操作

Implementation

@override
Future<bool> onWillPop() {
  return Future.value(true);
}