back<T> static method

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

Implementation

static void back<T>([T? result]) {
  if (Navigator.of(navigatorKey.currentContext!).canPop()) {
    Navigator.pop<T>(navigatorKey.currentContext!, result);
  }
}