TextDialogOption class
An option used in a SimpleDialog, which wraps text with default padding and style.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- TextDialogOption
Constructors
- TextDialogOption({Key? key, required Widget text, required void onPressed(), void onLongPressed()?, EdgeInsets padding = kTextDialogOptionPadding, BuildContext? popWhenPress})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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 text, defaults to
EdgeInsets.symmetric(horizontal: 24.0, vertical: 12.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
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- text → Widget
-
The text widget below this widget in the tree, typically 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