Created
September 30, 2020 03:12
-
-
Save datasciencemonkey/f2a56dae9b11cd0c5b4cdb0fa8807d8c to your computer and use it in GitHub Desktop.
update app state for the TV app
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
void updateUI(dynamic recommendationJSON) { | |
setState(() { | |
if (recommendationJSON == null) { | |
recommendationText = ''; | |
return; | |
} | |
recommendationText = | |
recommendationJSON['events'][1]['event']['Recommendation']; | |
print(recommendationText); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment