Mica constructor

const Mica({
  1. Key? key,
  2. required Widget child,
  3. double elevation = 0,
  4. Color? backgroundColor,
  5. BorderRadius? borderRadius,
  6. BoxShape shape = BoxShape.rectangle,
})

Creates the Mica material.

elevation must be non-negative.

Implementation

const Mica({
  super.key,
  required this.child,
  this.elevation = 0,
  this.backgroundColor,
  this.borderRadius,
  this.shape = BoxShape.rectangle,
}) : assert(elevation >= 0.0);