How to assign future <> to widget in flutter?

Posted by Editorial Staff | Updated on

Want to assign future<> to widget in flutter? I have called this getTextFromFile() method from the constructor, but you may call it from anywhere.

Here is example code:

If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@] Your question and answer will appear on and help other developers.

Related Questions & Answers