copyWithError method
Implementation
@override
ResourceState<K, V> copyWithError(
Object error, {
bool? isLoading,
bool includeValue = true,
}) =>
ResourceState._raw(
key,
includeValue ? value : null,
error,
isLoading: isLoading ?? this.isLoading,
source: includeValue ? source : null,
);