Skip to content

Instantly share code, notes, and snippets.

@juliuscanute
Created August 10, 2019 08:49
Show Gist options
  • Select an option

  • Save juliuscanute/f699fc61d8e4cea0cfb85a7a33ce1e53 to your computer and use it in GitHub Desktop.

Select an option

Save juliuscanute/f699fc61d8e4cea0cfb85a7a33ce1e53 to your computer and use it in GitHub Desktop.
[Fetch Result] #dart #flutter #api
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