ModulaExpansionPanelItem class
Individual expansion panel item
Constructors
- ModulaExpansionPanelItem({required Widget header, required Widget body, Widget? leading, Widget? trailing, IconData? expandIcon, bool canTapOnHeader = true, Widget headerBuilder({BuildContext context, bool isExpanded})?, EdgeInsetsGeometry? bodyPadding})
-
const
Properties
- body → Widget
-
Body/content widget
final
- bodyPadding → EdgeInsetsGeometry?
-
Body padding
final
- canTapOnHeader → bool
-
Whether the entire header is tappable
final
- expandIcon → IconData?
-
Custom expand icon
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- header → Widget
-
Header widget
final
- headerBuilder → Widget Function({BuildContext context, bool isExpanded})?
-
Custom header builder
final
- leading → Widget?
-
Leading widget (before header)
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- trailing → Widget?
-
Trailing widget (after header, overrides default expand icon)
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