maybePop<T extends Object> method

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

Consults the current route's Route.willPop method, and acts accordingly, potentially popping the route as a result; returns whether the pop request should be considered handled.

Implementation

Future<bool> maybePop<T extends Object>([Object? args]) async {
  return navigationKey.currentState!.maybePop<T>(args as T);
}