hide method

dynamic hide()

Implementation

hide() {
  if (globalKey.currentContext == null) return;

  Navigator.pop(globalKey.currentContext!);
}