request<TData, TVars> method
Stream<OperationResponse<TData, TVars> >
request<TData, TVars>(
- OperationRequest<
TData, TVars> request, [ - NextTypedLink<
TData, TVars> ? forward
override
Implementation
@override
Stream<OperationResponse<TData, TVars>> request<TData, TVars>(
OperationRequest<TData, TVars> request, [
forward,
]) =>
request.optimisticResponse == null
? forward!(request)
: forward!(request).startWith(
OperationResponse(
operationRequest: request,
data: request.optimisticResponse,
dataSource: DataSource.Optimistic,
),
);