i want to display message from API but i dont know how to display it in my widget with condition if else like this.
Future getData() async { Shared