SBBAccordionItem class

The SBB Accordion item - heavily inspired be the material expansion panel. Use according to documentation.

It has a title and a body and can be either expanded or collapsed. The body of the item is only visible when it is expanded.

Accordion items are only intended to be used as children for SBBAccordion.

See also:

Constructors

SBBAccordionItem({required String title, required Widget body, bool isExpanded = false, EdgeInsetsGeometry padding = const EdgeInsetsDirectional.fromSTEB(sbbDefaultSpacing, 10.0, sbbDefaultSpacing, sbbDefaultSpacing)})
Creates an accordion item to be used as a child for SBBAccordion. See SBBAccordion for an example on how to use this widget.
SBBAccordionItem.text({required String title, required String text, bool isExpanded = false})

Properties

body Widget
The body of the accordion item that's displayed below the header.
final
hashCode int
The hash code for this object.
no setterinherited
isExpanded bool
Whether the item is expanded.
final
padding EdgeInsetsGeometry
The padding around the body.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
title String
The title text that's displayed in the header.
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