maybePop<T extends Object> method Null safety

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

Tries to pop the current route, while honoring the route's Route.willPop state.

Implementation

Future<bool> maybePop<T extends Object>([T? result]) {
  return navigator!.maybePop<T>(result);
}