DataState class to represent the different states of a value.
The type of the content.
The value, can be null if not available.
The error if any, can be null.
True if the value is loading, false otherwise.
Composable function to render the different states of a DataState object.