PanelPoppingBehavior enum Null safety

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

Inheritance

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.

const PanelPoppingBehavior(0)
POP_IMMEDIATELY → const PanelPoppingBehavior

When this is given, the route is popped IMMEDIATELY, after completing the animation (If any).

const PanelPoppingBehavior(1)

Properties

hashCode int
The hash code for this object.
read-onlyinherited
index int
A numeric identifier for the enumerated value.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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.
[POP_AFTER_TAP, POP_IMMEDIATELY]