void setBlendMode(BlendMode blendMode)

Source

void setBlendMode(BlendMode blendMode) {
  _activeBlendMode = blendMode;
  _renderingContext.globalCompositeOperation = blendMode.compositeOperation;
}