AnimatedModalBarrier constructor Null safety

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

Creates a widget that blocks user interaction.

Implementation

const AnimatedModalBarrier({
  super.key,
  required Animation<Color?> color,
  this.dismissible = true,
  this.semanticsLabel,
  this.barrierSemanticsDismissible,
  this.onDismiss,
}) : super(listenable: color);