UFUConfirmationDialog class

Inheritance

Constructors

UFUConfirmationDialog({Key? key, required String? title, String? subTitle, Color? subTitleColor, String? prefixBtnText = 'Cancel', String? suffixBtnText = '', VoidCallback? onTapPrefix, VoidCallback? onTapSuffix, IconData? icon, double? iconSize, UFUConfirmationDialogType type = UFUConfirmationDialogType.message, bool disableButtons = false, Widget? suffixBtnIcon, Widget? content, UFUButtonColorType? prefixBtnColorType, VoidCallback? onTapIcon, UFUButtonRadius? buttonRadius})
const

Properties

buttonRadius → UFUButtonRadius?
final
content → Widget?
final
disableButtons → bool
final
hashCode → int
The hash code for this object.
no setterinherited
icon → IconData?
It can be used to set any icon above title of confirmation dialog
final
iconSize → double?
It can be used to set any icon above title of confirmation dialog
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onTapIcon → VoidCallback?
onTapIcon can be used to perform click on icon
final
onTapPrefix → VoidCallback?
It can be used to perform action on click of prefix button, default action is navigate back
final
onTapSuffix → VoidCallback?
It can be used to perform action on suffix button click
final
prefixBtnColorType → UFUButtonColorType?
Used to set button color, text color, border color.
final
prefixBtnText → String?
It can be used to set text of the button, one on the left side default value is CANCEL
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
subTitle → String?
It can be used to set subtitle, this is an optional field
final
subTitleColor → Color?
It can be used to set subtitle, this is an optional field
final
suffixBtnIcon → Widget?
It can be used to display widget inside suffix button when it is in use suffixText text will hide by default
final
suffixBtnText → String?
It can be used to set text of the button, one on the right side
final
title → String?
It can be used to set title of the dialog, this is required
final
type → UFUConfirmationDialogType
It can be used to specify type of dialog
final

Methods

createElement() → StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → UFUConfirmationDialogState
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() → List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) → String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String
Returns a one-line detailed description of the object.
inherited
toStringShort() → String
A short, textual description of this widget.
inherited

Operators

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