MessageDialog class

Inheritance

Constructors

MessageDialog({Color? dialogBackgroundColor = Colors.white, Color? buttonOkColor, String title = 'Dialog Title', Color? titleColor, String message = 'Dialog Message', Color? messageColor, String buttonOkText = 'Ok', Function? buttonOkOnPressed, double dialogRadius = 15.0, double buttonRadius = 18.0, Icon? iconButtonOk})

Properties

buttonOkColor Color?
buttonOkColor for OkButton background color
final
buttonOkOnPressed Function?
onPressed callback for Ok button on the dialog
getter/setter pair
buttonOkText String
String argument for the Text widget of Ok button on the dialog
final
buttonRadius double
Set buttonRadius radius to 0.0 for rectangular borders
final
dialogBackgroundColor Color?
BackgroundColor for dialog
final
dialogRadius double
Set dialogRadius to 0.0 for rectangular borders
final
hashCode int
The hash code for this object.
no setterinherited
iconButtonOk Icon?
Icon for Okay button on the dialog
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
message String
String to be displayed as the Message on the dialog
final
messageColor Color?
Color for Text widget for message on the dialog
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
title String
String to be displayed as the Title on the dialog
final
titleColor Color?
Color for Text widget for title on the dialog
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
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
dismiss(BuildContext? context) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
show(BuildContext? context, {Color? barrierColor = Colors.white, bool? barrierDismissible = true}) → void
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}) 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