pop<T> static method

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

Implementation

static pop<T>([T? result]) {
  BuildContext? context = OdinApp.get().getCurrentContext();

  if (context == null) {
    return;
  }

  if (!canPop()) {
    return;
  }

  Navigator.of(context).pop<T>(result);
}