copyWithValue method

  1. @override
ResourceState<K, V> copyWithValue(
  1. V value, {
  2. required Source source,
  3. bool? isLoading,
  4. bool includeError = true,
})
override

Implementation

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