SimpleDialog constructor Null safety

const SimpleDialog(
  1. {Key? key,
  2. Widget? title,
  3. EdgeInsetsGeometry titlePadding,
  4. TextStyle? titleTextStyle,
  5. List<Widget>? children,
  6. EdgeInsetsGeometry contentPadding,
  7. Color? backgroundColor,
  8. double? elevation,
  9. String? semanticLabel,
  10. EdgeInsets insetPadding,
  11. Clip clipBehavior,
  12. ShapeBorder? shape}
)

Creates a simple dialog.

Typically used in conjunction with showDialog.

The titlePadding and contentPadding arguments must not be null.

Implementation

const SimpleDialog({
  Key? key,
  this.title,
  this.titlePadding = const EdgeInsets.fromLTRB(24.0, 24.0, 24.0, 0.0),
  this.titleTextStyle,
  this.children,
  this.contentPadding = const EdgeInsets.fromLTRB(0.0, 12.0, 0.0, 16.0),
  this.backgroundColor,
  this.elevation,
  this.semanticLabel,
  this.insetPadding = _defaultInsetPadding,
  this.clipBehavior = Clip.none,
  this.shape,
}) : assert(titlePadding != null),
     assert(contentPadding != null),
     super(key: key);