pop<T extends Object?> method

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

pop到上一个页面

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

Implementation

@override
Future<void> pop<T extends Object?>([T? result]) async {
  Map<String, dynamic> params = {};
  params["result"] = result;
  await methodChannel.invokeMethod<T>(FMNavigatorMethod.popMethod, params);
  return;
}