error property
FailureResponse<E> ?
get
error
Get error if in failed/networkError state, null otherwise
Implementation
FailureResponse<E>? get error => switch (this) {
FailedState<T, E>(error: final e) => e,
NetworkErrorState<T, E>(error: final e) => e,
_ => null,
};