popResult static method
In case result
is success, call Navigator.pop with the result, else do nothing.
Implementation
static void popResult(BuildContext context, Object? result) => Navigator.of(context).pop(result);
In case result
is success, call Navigator.pop with the result, else do nothing.
static void popResult(BuildContext context, Object? result) => Navigator.of(context).pop(result);