PhysicalModelLayer constructor

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

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

The clipPath, elevation, and color arguments must not be null.

Implementation

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