New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert Future<int> to int in Flutter #23084
Comments
@marj29 in order to get value out of the Future you have to use async/await.
You can find more on that in the dart lang tutorials. |
Please consider asking support questions in one of the other channels listed at http://flutter.io/support . |
@tomkowz thank you so much for your response |
@tomkowz Thank you. Just what I need. |
Late but might be useful for others. suppose you have a function called |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
How to convert Future int to int in flutter?
Example: I have a function that return a Future int and I want to compare if the return output is greater than or equal to zero.
Thanks in advance
The text was updated successfully, but these errors were encountered: