copyWithValue method

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

Implementation

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