CollapsibleStateData class
Internal data structure for sharing collapsible state between child widgets.
CollapsibleStateData provides a communication mechanism between the Collapsible parent and its child widgets like CollapsibleTrigger and CollapsibleContent. It exposes the current expansion state and a callback for triggering state changes.
Constructors
- CollapsibleStateData.new({required bool isExpanded, required VoidCallback handleTap})
-
Creates a CollapsibleStateData with the specified state and callback.
const
Properties
- handleTap → VoidCallback
-
Callback to trigger expansion state changes.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isExpanded → bool
-
Current expansion state of the collapsible.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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