MDialog constructor

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

Implementation

const MDialog({
  super.key,
  this.backgroundColor,
  this.elevation,
  this.shadowColor,
  this.surfaceTintColor,
  this.insetAnimationDuration = const Duration(milliseconds: 100),
  this.insetAnimationCurve = Curves.decelerate,
  this.insetPadding = _defaultInsetPadding,
  this.clipBehavior = Clip.none,
  this.shape,
  this.alignment,
  this.child,
})  : assert(elevation == null || elevation >= 0.0),
      _fullscreen = false;