writeFragment<TData, TVars> method

Future<void> writeFragment<TData, TVars>(
  1. FragmentRequest<TData, TVars> request,
  2. TData data, {
  3. OperationRequest<TData, TVars>? optimisticRequest,
})

Implementation

Future<void> writeFragment<TData, TVars>(
    FragmentRequest<TData, TVars> request, TData data,
    {OperationRequest<TData, TVars>? optimisticRequest}) {
  return _handleSingleResponseCommand(
    (sendPort) => WriteFragmentCommand(
      sendPort,
      request,
      data,
      optimisticRequest,
    ),
  );
}