Fix drawVertices documentation (flutter/engine#43747)

Update the blend mode section of the documentation to specify the correct blend modes.

Fixes https://github.com/flutter/flutter/issues/130747
This commit is contained in:
Brian Osman
2023-07-17 18:48:14 -04:00
committed by GitHub
parent 4ea97ab9a3
commit b8a91e96a8

View File

@@ -5442,8 +5442,8 @@ abstract class Canvas {
/// specified in the `vertices` using the `blendMode` parameter. For the
/// purposes of this blending, the colors from the `paint` parameter are
/// considered the source, and the colors from the `vertices` are considered
/// the destination. [BlendMode.dstOver] ignores the `paint` and uses only the
/// colors of the `vertices`; [BlendMode.srcOver] ignores the colors of the
/// the destination. [BlendMode.dst] ignores the `paint` and uses only the
/// colors of the `vertices`; [BlendMode.src] ignores the colors of the
/// `vertices` and uses only the colors in the `paint`.
///
/// All parameters must not be null.