ConfirmAlertBox class
DarkAlertBox
ConfirmAlertBox
title used for alert_box title by default its "Your alert title comes here"
icon used for alert_box title Icon by default its Info icon
messageText
used from main message of alert box by default its "Alert Message Here"
titleTextColor used for both title Text and Icon color by default its black
messageColor
used for main message text color by default its black
buttonColorForYes used for button background color by default its Green
buttonTextColorForYes used for button text color by default its white
buttonTextForYes used for button text value by default its "Yes"
buttonColorForNo used for button background color by default its Red
buttonTextColorForNo used for button text color by default its white
buttonTextForNo used for button text value by default its "No"
onPressedYes is a function that will call when onpressed Yes button
onPressedNo is a function that will call when onpressed No button
Constructors
- ConfirmAlertBox({BuildContext? context, String? title, String? infoMessage, Color? titleTextColor, Color? messageTextColor, Color? buttonColorForYes, String? buttonTextForYes, Color? buttonTextColorForYes, Color? buttonColorForNo, Color? buttonTextColorForNo, String? buttonTextForNo, Function? onPressedYes, Function? onPressedNo, IconData? icon})
Properties
-
final
-
final
-
final
-
final
-
final
-
final
- context → BuildContext?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon → IconData?
-
final
- infoMessage → String?
-
final
- messageTextColor → Color?
-
final
- onPressedNo → Function?
-
final
- onPressedYes → Function?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- title → String?
-
final
- titleTextColor → Color?
-
final
Methods
-
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