Surface.transparent constructor

const Surface.transparent({
  1. Key? key,
  2. ShapeBorder? shape,
  3. Clip clipBehavior = Clip.none,
  4. TextStyle? textStyle,
  5. required Widget child,
})

Paints nothing but shape's side, and lets hits through.

Implementation

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