ModalBarrier constructor Null safety

const ModalBarrier(
  1. {Key? key,
  2. Color? color,
  3. bool dismissible = true,
  4. VoidCallback? onDismiss,
  5. String? semanticsLabel,
  6. bool? barrierSemanticsDismissible = true}
)

Creates a widget that blocks user interaction.

Implementation

const ModalBarrier({
  super.key,
  this.color,
  this.dismissible = true,
  this.onDismiss,
  this.semanticsLabel,
  this.barrierSemanticsDismissible = true,
});