PhysicalModelLayer constructor

PhysicalModelLayer({Path clipPath, Clip clipBehavior: Clip.none, double elevation, Color color, Color shadowColor })

Creates a composited layer that uses a physical model to producing lighting effects.

The clipPath, clipBehavior, elevation, color, and shadowColor arguments must be non-null before the compositing phase of the pipeline.

Implementation

PhysicalModelLayer({
  Path clipPath,
  Clip clipBehavior = Clip.none,
  double elevation,
  Color color,
  Color shadowColor,
}) : _clipPath = clipPath,
     _clipBehavior = clipBehavior,
     _elevation = elevation,
     _color = color,
     _shadowColor = shadowColor;