DDSAccordion class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- DDSAccordion
Constructors
-
DDSAccordion.new({Key? key, required List<
AccordionItem> items, Duration duration = const Duration(milliseconds: 300), Color? expandedHeaderBackgroundColor = Colors.transparent, Color? collapsedHeaderBackgroundColor = Colors.transparent, Color? expandedContentBackgroundColor = Colors.transparent, Color? collapsedContentBackgroundColor = Colors.transparent, Color collapsedHeaderBorderColor = Colors.transparent, Color expandedHeaderBorderColor = Colors.transparent, TextStyle headerTextStyle = const TextStyle(fontWeight: FontWeight.bold), TextStyle contentTextStyle = const TextStyle(), BoxDecoration? collapsedBoxDecoration, BoxDecoration? expandedBoxDecoration, BoxDecoration? collapsedContentBoxDecoration, BoxDecoration? expandedContentBoxDecoration, bool isHeaderIconOnRight = false, EdgeInsets? headerContentOffset, EdgeInsetsGeometry? contentPadding, CrossAxisAlignment? contentAlignment, EdgeInsetsGeometry? headerPadding, EdgeInsets? accordionItemPadding, TextOverflow? headerTextOverflow, int? headerMaxLines, dynamic onStateChanged(int index, bool isExpanded, DDSAccordionController controller)?}) -
const
Properties
- accordionItemPadding → EdgeInsets?
-
final
- collapsedBoxDecoration → BoxDecoration?
-
final
- collapsedContentBackgroundColor → Color?
-
final
- collapsedContentBoxDecoration → BoxDecoration?
-
final
- collapsedHeaderBackgroundColor → Color?
-
final
- collapsedHeaderBorderColor → Color
-
final
- contentAlignment → CrossAxisAlignment?
-
final
- contentPadding → EdgeInsetsGeometry?
-
final
- contentTextStyle → TextStyle
-
final
- duration → Duration
-
final
- expandedBoxDecoration → BoxDecoration?
-
final
- expandedContentBackgroundColor → Color?
-
final
- expandedContentBoxDecoration → BoxDecoration?
-
final
- expandedHeaderBackgroundColor → Color?
-
final
- expandedHeaderBorderColor → Color
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- headerContentOffset → EdgeInsets?
-
final
- headerMaxLines → int?
-
final
- headerPadding → EdgeInsetsGeometry?
-
final
- headerTextOverflow → TextOverflow?
-
final
- headerTextStyle → TextStyle
-
final
- isHeaderIconOnRight → bool
-
final
-
items
→ List<
AccordionItem> -
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- onStateChanged → dynamic Function(int index, bool isExpanded, DDSAccordionController controller)?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → DDSAccordionState -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited