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