pop<T> method

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

Removes the top-most route from the stack.

Works with routes pushed with flutter's Navigator too.

Implementation

@override
void pop<T>([T? result]) {
  if (!rootNavigatorNode.pop(result)) {
    SystemNavigator.pop();
  }
}