Created
August 10, 2019 08:49
-
-
Save juliuscanute/f699fc61d8e4cea0cfb85a7a33ce1e53 to your computer and use it in GitHub Desktop.
[Fetch Result] #dart #flutter #api
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| final api = Api(); | |
| final result = await api.callType1(convert, | |
| param1, param2, param3); | |
| if (result == null) { | |
| setState(() { | |
| _showErrorUI = true; | |
| }); | |
| } else { | |
| setState(() { | |
| _value = result; | |
| }); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment