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