GlassDialog constructor

const GlassDialog({
  1. required List<GlassDialogAction> actions,
  2. Key? key,
  3. String? title,
  4. String? message,
  5. Widget? content,
  6. LiquidGlassSettings? settings,
  7. GlassQuality? quality,
  8. double maxWidth = 280,
})

Creates a glass dialog widget.

Typically not instantiated directly - use GlassDialog.show instead.

Implementation

const GlassDialog({
  required this.actions,
  super.key,
  this.title,
  this.message,
  this.content,
  this.settings,
  this.quality,
  this.maxWidth = 280,
}) : assert(
        actions.length > 0 && actions.length <= 3,
        'GlassDialog must have 1-3 actions',
      );