back<T> method

Future<void> back<T>([
  1. T? result
])

Pops the current route if possible.

Optionally returns a result to the previous route.

Implementation

Future<void> back<T>([T? result]) async {
  if (navigator.canPop()) navigator.pop<T>(result);
}