goBack method

dynamic goBack()

Implementation

goBack() {
  if (navigatorKey.currentContext != null) {
    if (navigatorKey.currentContext!.canPop()) {
      navigatorKey.currentContext!.pop();
    }
  }
}