PanelClosedOptions class Null safety

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.
read-onlyinherited
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.
read-onlyinherited
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 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