pop<T extends Object?> static method

Future<void> pop<T extends Object?>([
  1. T? result
])

pop到上一个页面

@parma result 接受回调,T是个泛型,可以指定要返回的数据类型

Implementation

static Future<void> pop<T extends Object?>([T? result]) async {
  if (Navigator.canPop(MeteorFlutterNavigator.rootContext)) {
    return await _flutterNavigator.pop<T>(result);
  } else {
    return await _nativeNavigator.pop<T>(result);
  }
}