copyWith method

QueryState<T> copyWith({
  1. T? data,
  2. bool? isLoading,
  3. String? errorMessage,
  4. String? filter,
})

Implementation

QueryState<T> copyWith({
  T? data,
  bool? isLoading,
  String? errorMessage,
  String? filter,
}) {
  return QueryState<T>(
    rawdata: data ?? rawdata,
    isLoading: isLoading ?? this.isLoading,
    errorMessage: errorMessage ?? this.errorMessage,
    filter: filter ?? this.filter,
  );
}