popScreen static method

void popScreen({
  1. GlobalKey<NavigatorState>? navigationKey,
})

Implementation

static void popScreen({GlobalKey<NavigatorState>? navigationKey}) {
  if (navigationKey == null) {
    _navigationKey.currentState!.pop();
  } else
    navigationKey.currentState!.pop();
}