drawColor method Null safety

void drawColor(
  1. Color color,
  2. BlendMode blendMode
)

Paints the given Color onto the canvas, applying the given BlendMode, with the given color being the source and the background being the destination.

Implementation

void drawColor(Color color, BlendMode blendMode) {
  assert(color != null);
  assert(blendMode != null);
  _drawColor(color.value, blendMode.index);
}