Surface constructor

const Surface({
  1. Key? key,
  2. Color? color = const Color(0x00000000),
  3. ShapeBorder? shape,
  4. Clip clipBehavior = Clip.none,
  5. double elevation = 0,
  6. Color? shadowColor,
  7. TextStyle? textStyle,
  8. required Widget child,
})

Implementation

const Surface({
  super.key,
  this.color = const Color(0x00000000),
  this.shape,
  this.clipBehavior = Clip.none,
  this.elevation = 0,
  this.shadowColor,
  this.textStyle,
  required this.child,
}) : _absorbsHits = true;