PhysicalModelModifier constructor

const PhysicalModelModifier({
  1. Key? key,
  2. Widget? child,
  3. Key? modifierKey,
  4. BoxShape shape = BoxShape.rectangle,
  5. Clip clipBehavior = Clip.none,
  6. BorderRadius? borderRadius,
  7. double elevation = 0.0,
  8. required Color color,
  9. Color shadowColor = const Color(0xFF000000),
})

Creates a physical model with a rounded-rectangular clip.

The color is required; physical things have a color.

The shape, elevation, color, clipBehavior, and shadowColor must not be null. Additionally, the elevation must be non-negative.

Implementation

const PhysicalModelModifier({
  super.key,
  super.child,
  super.modifierKey,
  this.shape = BoxShape.rectangle,
  this.clipBehavior = Clip.none,
  this.borderRadius,
  this.elevation = 0.0,
  required this.color,
  this.shadowColor = const Color(0xFF000000),
}) : assert(elevation >= 0.0);