pushPhysicalShape method

void pushPhysicalShape ({Path path, double elevation, Color color, Color shadowColor })

Pushes a physical layer operation for an arbitrary shape onto the operation stack.

Rasterization will be clipped to the given shape defined by path. If elevation is greater than 0.0, then a shadow is drawn around the layer. shadowColor defines the color of the shadow if present and color defines the color of the layer background.

See pop for details about the operation stack.

Implementation

void pushPhysicalShape({ Path path, double elevation, Color color, Color shadowColor}) {
  _pushPhysicalShape(path, elevation, color.value, shadowColor?.value ?? 0xFF000000);
}