getx icon indicating copy to clipboard operation
getx copied to clipboard

Return value from dialog

Open jwelmac opened this issue 4 months ago • 2 comments

Previous usage of Get.dialog allowed closing of the dialog using Get.back with an optional result. With the redesigned Get.dialog implementation Get.back will no longer close the dialog or return a value. Instead to close a dialog Get.closeOverlay or Get.backLegacy has to be used.

This PR introduces the ability to return a value when closing a dialog with Get.closeOverlay and introduces an alias method Get.closeDialog.

Solves #3122

Pre-launch Checklist

  • [x] I updated/added relevant documentation (doc comments with ///).
  • [x] I added new tests to check the change I am making or feature I am adding, or @jonataslaw said the PR is test-exempt.
  • [x] All existing and new tests are passing.

jwelmac avatar Oct 08 '24 17:10 jwelmac