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