drawShadow method

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) {
  // ignore: unnecessary_null_comparison
  assert(path != null); // path is checked on the engine side
  assert(color != null); // ignore: unnecessary_null_comparison
  assert(transparentOccluder != null); // ignore: unnecessary_null_comparison
  _drawShadow(path, color.value, elevation, transparentOccluder);
}