IconTextDialogOption class

An option used in a SimpleDialog, which wraps icon and text with default padding and style.

Inheritance

Constructors

IconTextDialogOption({Key? key, required Widget icon, required Widget text, required void onPressed(), void onLongPressed()?, EdgeInsets padding = kIconTextDialogOptionPadding, double space = kIconTextDialogOptionSpace, bool rtl = false, BuildContext? popWhenPress})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
icon Widget
The icon widget below this widget in the tree, typically is a Icon widget.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onLongPressed → (void Function()?)
The callback that is called when this option is long pressed.
final
onPressed → void Function()
The callback that is called when this option is selected.
final
padding EdgeInsets
The padding to surround the icon and text, defaults to EdgeInsets.symmetric(horizontal: 24.0, vertical: 10.0).
final
popWhenPress BuildContext?
This is a convenient field only used in showDialog. If you set the this value to dialog's context, the specific dialog will be popped before onPressed is invoked.
final
rtl bool
The flag to display widget in text | icon order, defaults to false.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
space double
The space between icon and text, defaults to 15.0.
final
text Widget
The text widget below this widget in the tree, typically is a Text widget.
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
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}) 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