ArcaneAlertDialog constructor

const ArcaneAlertDialog({
  1. Key? key,
  2. Widget? leading,
  3. Widget? title,
  4. Widget? content,
  5. List<Widget>? actions,
  6. Widget? trailing,
  7. double? surfaceBlur,
  8. double? surfaceOpacity,
  9. EdgeInsetsGeometry? padding,
})

Constructs an ArcaneAlertDialog with header, content, and styling parameters.

Initializes the stateful dialog with optional components. All parameters are flexible, allowing omission for minimal dialogs. The padding can be customized; otherwise, defaults are applied in the state build. This constructor prepares the widget for embedding in modals.

Parameters:

  • key: Flutter key.
  • leading: Left header widget.
  • title: Title widget.
  • content: Body widget.
  • actions: Action list.
  • trailing: Right header widget.
  • surfaceBlur: Blur radius.
  • surfaceOpacity: Opacity level.
  • padding: Internal padding geometry.

Implementation

const ArcaneAlertDialog({
  super.key,
  this.leading,
  this.title,
  this.content,
  this.actions,
  this.trailing,
  this.surfaceBlur,
  this.surfaceOpacity,
  this.padding,
});