GlassDialog constructor
const
GlassDialog({
- required List<
GlassDialogAction> actions, - Key? key,
- String? title,
- String? message,
- Widget? content,
- LiquidGlassSettings? settings,
- GlassQuality? quality,
- 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',
);