SmartDialogParams class

Configuration class for customizing dialog appearance and behavior.

Used with SmartDialogManager.showDialog to define the visual and functional properties of a dialog.

Constructors

SmartDialogParams.new({Color? backgroundColor, Color? foregroundColor, Color? borderColor, String? title, TextStyle? titleTextStyle, Color? closeIconColor, TextStyle? descriptionTextStyle, TextStyle? positiveButtonTextStyle, ButtonStyle? positiveButtonStyle, TextStyle? negativeButtonTextStyle, ButtonStyle? negativeButtonStyle, String? description, Widget? customWidget, String? positiveButtonText, String? negativeButtonText, VoidCallback? onPositiveButtonPressed, VoidCallback? onNegativeButtonPressed, VoidCallback? onOutClick, VoidCallback? onOnClose})
Creates a SmartDialogParams instance.

Properties

backgroundColor Color?
Background color of the dialog.
final
borderColor Color?
Optional border color around the dialog.
final
closeIconColor Color?
Color of the close icon if shown.
final
customWidget Widget?
Custom widget to display instead of the default title/description layout.
final
description String?
Main content message shown in the dialog.
final
descriptionTextStyle TextStyle?
Text style for the main dialog description.
final
foregroundColor Color?
Foreground/text color used in the dialog content.
final
hashCode int
The hash code for this object.
no setterinherited
negativeButtonStyle ButtonStyle?
Button style for the negative button.
final
negativeButtonText String?
Label for the negative action button (e.g., "Cancel", "No").
final
negativeButtonTextStyle TextStyle?
Text style for the negative button label.
final
onNegativeButtonPressed VoidCallback?
Called when the negative button is pressed.
final
onOnClose VoidCallback?
Called when the dialog is closed (either via button press or outside click).
final
onOutClick VoidCallback?
Called when the user clicks outside the dialog.
final
onPositiveButtonPressed VoidCallback?
Called when the positive button is pressed.
final
positiveButtonStyle ButtonStyle?
Button style for the positive button.
final
positiveButtonText String?
Label for the positive action button (e.g., "OK", "Yes").
final
positiveButtonTextStyle TextStyle?
Text style for the positive button label.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
title String?
Optional title text displayed at the top of the dialog.
final
titleTextStyle TextStyle?
Text style for the dialog title.
final

Methods

copyWith({Color? backgroundColor, Color? foregroundColor, Color? borderColor, String? title, TextStyle? titleTextStyle, Color? closeIconColor, TextStyle? descriptionTextStyle, TextStyle? positiveButtonTextStyle, ButtonStyle? positiveButtonStyle, TextStyle? negativeButtonTextStyle, ButtonStyle? negativeButtonStyle, String? description, Widget? customWidget, String? positiveButtonText, String? negativeButtonText, VoidCallback? onPositiveButtonPressed, VoidCallback? onNegativeButtonPressed, VoidCallback? onOutClick, VoidCallback? onOnClose}) SmartDialogParams
Copies this instance with updated values.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited