Dialog constructor Null safety

const Dialog(
  1. {Key? key,
  2. Color? backgroundColor,
  3. double? elevation,
  4. Duration insetAnimationDuration = const Duration(milliseconds: 100),
  5. Curve insetAnimationCurve = Curves.decelerate,
  6. EdgeInsets? insetPadding = _defaultInsetPadding,
  7. Clip clipBehavior = Clip.none,
  8. ShapeBorder? shape,
  9. AlignmentGeometry? alignment,
  10. Widget? child}
)

Creates a dialog.

Typically used in conjunction with showDialog.

Implementation

const Dialog({
  super.key,
  this.backgroundColor,
  this.elevation,
  this.insetAnimationDuration = const Duration(milliseconds: 100),
  this.insetAnimationCurve = Curves.decelerate,
  this.insetPadding = _defaultInsetPadding,
  this.clipBehavior = Clip.none,
  this.shape,
  this.alignment,
  this.child,
}) : assert(clipBehavior != null);