back<T> static method

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

Closes the current page/dialog/sheet, optionally with a result. UNavigator.back(true)

Implementation

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