copyWith method

QueryResult<T> copyWith({
  1. T? data,
  2. bool? isLoading,
  3. dynamic error,
})

Implementation

QueryResult<T> copyWith({T? data, bool? isLoading, dynamic error}) =>
    QueryResult(
      data: data ?? this.data,
      isLoading: isLoading ?? this.isLoading,
      error: error ?? this.error,
    );