ResourceState<S>.error constructor

ResourceState<S>.error(
  1. Exception error
)

Implementation

factory ResourceState.error(Exception error) {
  return ResourceState(
    state: ResourceStateEnum.error,
    error: error,
    data: null,
  );
}