PhysicalModelLayer constructor Null safety

  1. @Deprecated('Use a clip and canvas operations directly (See RenderPhysicalModel). ' 'This feature was deprecated after v2.13.0-0.0.pre.')
PhysicalModelLayer(
  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.

Implementation

@Deprecated(
  'Use a clip and canvas operations directly (See RenderPhysicalModel). '
  'This feature was deprecated after v2.13.0-0.0.pre.',
)
PhysicalModelLayer({
  Path? clipPath,
  Clip clipBehavior = Clip.none,
  double? elevation,
  Color? color,
  Color? shadowColor,
}) : _clipPath = clipPath,
     _clipBehavior = clipBehavior,
     _elevation = elevation,
     _color = color,
     _shadowColor = shadowColor;