PanelClosedOptions class
This helps you to execute specific actions when panel is closed.
Use case example : You are waiting for the user to perform a desired action with the panel (like a choice), and user just closes the panel, without interacting with it. In such cases, you need a DEFAULT value to be notified / thrown in order to handle this situation. sendResult and throwResult can be used for it.
Note that these actions only get triggered (sendResult and throwResult), when panel is brought to closed state, NOT having previous state as PanelState.dismissed.
To use all features, detachDragging needs to be true.
Constructors
- PanelClosedOptions({bool detachDragging = false, bool resetScrolling = false, Object? sendResult, Object? throwResult})
-
const
Properties
- detachDragging → bool
-
Specifies whether user should not be able to scroll (drag) the panel
after it is closed.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- resetScrolling → bool
-
Specifies whether to reset panel's scrolling position
when the panel is closed.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sendResult → Object?
-
Triggers PanelController.sendResult with result as
sendResult when the panel closes.
final
- throwResult → Object?
-
Triggers PanelController.throwResult with result as
throwResult when the panel closes.
final
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