PulseXState<T>.error constructor
PulseXState<T>.error (
- String message
Error state PulseXState.error is when api call finishes with error & return relevant error message
Implementation
factory PulseXState.error(String message) {
return PulseXState(
value: null,
message: message,
status: PulseXStatus.error,
);
}