Different widget when api call return empty (instead a listview)

I am using API to populate a page, creating the list with Listview. That´s OK!

But, when the result is empty, nothing is shown. Is there some way to create a different widget to say that no records were returned? And, the same idea, how to show if the result returned with an error?

5 replies