問題タブ [flutter-getx]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
flutter - 非同期関数と一緒に使用すると、Flutter Getx Get.back() が値を返さない
Getx パッケージを使用しており、Get.back(result: getPhoneNumber()) を使用して値を返したいと考えています。ただし、非同期関数がその前に実行されている場合、Get.back() は機能しません。以下は、handleResponse() が非同期関数であるコード スニペットです。これに加えて、isSuccessful 変数の値を確認する print ステートメントを追加しました。返される値は true です。
handleResponse 非同期関数:
これに加えて、ResponseHandler().handleResponse() 関数にコメントすると、期待どおりに機能することを述べたいと思います。

