ResourceState<S>.error constructor
ResourceState<S>.error (
- Exception error
Implementation
factory ResourceState.error(Exception error) {
return ResourceState(
state: ResourceStateEnum.error,
error: error,
data: null,
);
}