colorBlendMode property

BlendMode? colorBlendMode

Used to combine color with this image.

The default is BlendMode.srcIn. In terms of the blend mode, color is the source and this image is the destination.

See also:

  • BlendMode, which includes an illustration of the effect of each blend mode.

Implementation

BlendMode? get colorBlendMode => _colorBlendMode;
void colorBlendMode=(BlendMode? value)

Implementation

set colorBlendMode(BlendMode? value) {
  if (value == _colorBlendMode) {
    return;
  }
  _colorBlendMode = value;
  _updateColorFilter();
  markNeedsPaint();
}