goBack<T> method

void goBack<T>({
  1. dynamic result,
})

Implementation

void goBack<T>({result}) {
  if (_navigationKey.currentState!.canPop()) {
    _navigationKey.currentState!.pop(result);
  } else {
    _goBackToTheApp();
  }
}