maybePop<T extends Object> function

Future<bool> maybePop<T extends Object>([
  1. T? result
])

可能返回到上一个页面

Implementation

Future<bool> maybePop<T extends Object>([T? result]) {
  assert(FlExtended().navigatorKey.currentState != null,
      'Set FlExtended().navigatorKey to one of [MaterialApp CupertinoApp WidgetsApp]');
  return FlExtended().navigatorKey.currentState!.maybePop<T>(result);
}