removeOptimisticPatch method Null safety

void removeOptimisticPatch(
  1. OperationRequest request
)

Implementation

void removeOptimisticPatch(OperationRequest request) {
  if (!optimisticPatchesStream.value!.containsKey(request)) {
    return;
  }
  optimisticPatchesStream.add(
    Map.from(optimisticPatchesStream.value!)..remove(request),
  );
}