PanelPoppingBehavior enum
When any of the BackPressBehavior is given, if the user taps back button, panel's state is checked according to BackPressBehavior and animates accordingly (if needed).
With this, you can even control the behavior of the panel, that WHAT will happen AFTER the panel is animated. If you want to pop the panel immediately after animation OR wait for the user to tap again in order to pop the panel.
If no animation is played (e.g., the panel already satisfies the BackPressBehavior), the behavior would be set to POP_IMMEDIATELY.
Note that, this is simply ignored when BackPressBehavior.POP is given, or any of the persistent behavior is given in BackPressBehavior.
Also valid for two-state panels.
Default : POP_AFTER_TAP
Constructors
- PanelPoppingBehavior()
-
const
Values
- POP_AFTER_TAP → const PanelPoppingBehavior
-
When this is given, the route is NOT popped IMMEDIATELY, just the animation completes (If any).
Route will be popped after another back press.
This is the default behavior.
- POP_IMMEDIATELY → const PanelPoppingBehavior
-
When this is given, the route is popped IMMEDIATELY, after completing the animation (If any).
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
PanelPoppingBehavior> - A constant List of the values in this enum, in order of their declaration.