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