close static method

void close()

helper function to close the screen, popup etc.

Implementation

static void close() {
  BuildContext context = Get.context!;
  Navigator.of(context).pop();
}