Dialog constructor Null safety
- {Key? key,
- Color? backgroundColor,
- double? elevation,
- Duration insetAnimationDuration = const Duration(milliseconds: 100),
- Curve insetAnimationCurve = Curves.decelerate,
- EdgeInsets? insetPadding = _defaultInsetPadding,
- Clip clipBehavior = Clip.none,
- ShapeBorder? shape,
- AlignmentGeometry? alignment,
- 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);