MyAlertDialog<T> constructor

const MyAlertDialog<T>({
  1. Key? key,
  2. Widget? title,
  3. EdgeInsetsGeometry? titlePadding,
  4. Widget? content,
  5. EdgeInsetsGeometry contentPadding = const EdgeInsets.fromLTRB(24.0, 20.0, 24.0, 24.0),
  6. List<Widget>? actions,
  7. String? semanticLabel,
  8. Widget divider = const Divider(height: 0.0),
  9. bool isDividerEnabled = true,
})

Creates an alert dialog.

Typically used in conjunction with showDialog.

The contentPadding must not be null. The titlePadding defaults to null, which implies a default that depends on the values of the other properties. See the documentation of titlePadding for details.

Implementation

const MyAlertDialog({
  Key? key,
  this.title,
  this.titlePadding,
  this.content,
  this.contentPadding = const EdgeInsets.fromLTRB(24.0, 20.0, 24.0, 24.0),
  this.actions,
  this.semanticLabel,
  this.divider = const Divider(
    height: 0.0,
  ),
  this.isDividerEnabled = true,
}) : super(key: key);