Dialog constructor Null safety

const Dialog(
  1. {Key? key,
  2. Color? backgroundColor,
  3. double? elevation,
  4. Duration insetAnimationDuration,
  5. Curve insetAnimationCurve,
  6. EdgeInsets? insetPadding,
  7. Clip clipBehavior,
  8. ShapeBorder? shape,
  9. Widget? child}
)

Creates a dialog.

Typically used in conjunction with showDialog.

Implementation

const Dialog({
  Key? 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.child,
}) : assert(clipBehavior != null),
     super(key: key);