TextDialog constructor

const TextDialog({
  1. required String text,
  2. Key? key,
  3. Image? icon,
  4. TextStyle? dialogTextStyle,
  5. Color? backgroundColor,
})

Creates a text dialog.

  • text - The full text to display
  • icon - Custom close icon (defaults to close outline)
  • dialogTextStyle - Style for the displayed text
  • backgroundColor - Dialog background color

Implementation

const TextDialog({
  required this.text,
  super.key,
  this.icon,
  this.dialogTextStyle,
  this.backgroundColor,
});