copyWith method

StateSnapshot<V> copyWith({
  1. bool? isLoading,
  2. bool includeValue = true,
  3. bool includeError = true,
})

Implementation

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