copyWith method

FetchingState<T> copyWith({
  1. required LoadState fetchingStatus,
  2. T? data,
  3. Object? error,
})

Implementation

FetchingState<T> copyWith({
  required LoadState fetchingStatus,
  T? data,
  Object? error,
}) {
  return FetchingState(
    fetchingStatus: fetchingStatus,
    data: data ?? this.data,
    error: error ?? this.error,
  );
}