data_state library Null safety

Enums

StateType
The 3 possibles states, success, loading and error.

Typedefs

DataState<T> = _DataStateCore<T, dynamic>
Used when wants to set the success (T) type. The error will be dynamic.
DataStateCustom<T, E> = _DataStateCore<T, E>
Used when wants to set the success (T) and error (E) type.