void drawShadow(Path path, Color color, double elevation, bool transparentOccluder)

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

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

Source

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