AboutToClose class
Widget to control the flow of the app when the user is about to leave the app. The default operation is to ask the user if he really wants to leave the app.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- AboutToClose
Constructors
- AboutToClose({required Widget child, required String dialogTitle, String noOption = 'No', String yesOption = 'Yes', TextStyle? noOptionTextStyle, TextStyle? yesOptionTextStyle, bool withAnimation = false, int animationDurationInMs = 100, DialogType dialogType = DialogType.cupertino})
Properties
- animationDurationInMs → int
-
Define animation duration
final
- child → Widget
-
Child that will be rendered
final
- dialogTitle → String
-
Title of the dialog
final
- dialogType → DialogType
-
Define the dialog type
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- noOption → String
-
Text to the no option
final
- noOptionTextStyle → TextStyle?
-
Style of the no option
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- withAnimation → bool
-
Define wether animation is wanted or not
final
- yesOption → String
-
Text to the yes option
final
- yesOptionTextStyle → TextStyle?
-
Style of the yes option
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → _AboutToCloseState -
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}) → 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