drawShadow method Null safety

void drawShadow(
  1. Path path,
  2. Color color,
  3. double elevation,
  4. bool transparentOccluder
)

Draws a shadow for a Path representing the given material elevation.

The transparentOccluder argument should be true if the occluding object is not opaque.

The arguments must not be null.

Implementation

void drawShadow(Path path, Color color, double elevation, bool transparentOccluder) {
  assert(path != null); // path is checked on the engine side
  assert(color != null);
  assert(transparentOccluder != null);
  _drawShadow(path, color.value, elevation, transparentOccluder);
}