blendMode property Null safety

BlendMode blendMode

The BlendMode to use when applying the shader to the child.

The default, BlendMode.modulate, is useful for applying an alpha blend to the child. Other blend modes can be used to create other effects.

Implementation

BlendMode get blendMode => _blendMode;
void blendMode=(BlendMode value)

Implementation

set blendMode(BlendMode value) {
  assert(value != null);
  if (_blendMode == value)
    return;
  _blendMode = value;
  markNeedsPaint();
}