BackdropConfig class Null safety

Various configurations related to making SlidingPanel look and act like a backdrop widget.

To use features, first set BackdropConfig.enabled to true.

If enabled, a dark shadow is displayed over the PanelContent.bodyContent and various options are enabled.

Constructors

BackdropConfig({bool enabled = false, bool dragFromBody = true, Color shadowColor = Colors.black, double opacity = 0.5, bool collapseOnTap = true, bool closeOnTap = true, bool effectInCollapsedMode = true, bool draggableInClosed = false})
const

Properties

closeOnTap bool
Whether to close the panel by tapping the PanelContent.bodyContent.
final
collapseOnTap bool
Whether to collapse the panel by tapping the PanelContent.bodyContent, if this is not a Two-state panel.
final
dragFromBody bool
If true, and SlidingPanel.isDraggable is also true, this panel can also be moved by dragging on the PanelContent.bodyContent.
final
draggableInClosed bool
When this is set to true, the panel will be draggable, even when panel is closed. This also means that content behind the panel will not be able to receive gestures. (e.g., button taps).
final
effectInCollapsedMode bool
Whether this panel applies backdrop effects even if panel's height is below PanelState.collapsed mode. It means, the dragFromBody, shadowColor, opacity and closeOnTap will work even in collapsed mode.
final
enabled bool
Whether this is a Backdrop panel.
final
hashCode int
The hash code for this object.
read-onlyinherited
opacity double
Opacity of shadowColor to be applied when panel slides.
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
shadowColor Color
Provide custom shadow color over PanelContent.bodyContent.
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