void activateBlendMode(BlendMode blendMode)

Source

void activateBlendMode(BlendMode blendMode) {
  if (!identical(blendMode, _activeBlendMode)) {
    _activeRenderProgram.flush();
    _activeBlendMode = blendMode;
    _renderingContext.blendFunc(blendMode.srcFactor, blendMode.dstFactor);
  }
}