pop<T> method

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

Pop the top-most route off the navigator.

Deprecated. Will be removed in the next version. Should call BuildContext.navigator.pop() instead.

Implementation

@deprecated
T? pop<T>([T? result]) {
  Navigator.of(this).pop(result);
  return result;
}