PhysicalModelLayer constructor

  1. {Path clipPath,
  2. Clip clipBehavior: Clip.none,
  3. double elevation,
  4. Color color,
  5. 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.


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