MoonAccordion<T> class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- MoonAccordion
Constructors
-
MoonAccordion({Key? key, AlignmentGeometry? expandedAlignment, CrossAxisAlignment? expandedCrossAxisAlignment, bool autofocus = false, bool hasContentOutside = false, bool initiallyExpanded = false, bool isDisabled = false, bool maintainState = false, bool showBorder = false, bool showDivider = true, BorderRadiusGeometry? borderRadius, Clip? clipBehavior, Color? iconColor, Color? expandedIconColor, Color? textColor, Color? expandedTextColor, Color? backgroundColor, Color? expandedBackgroundColor, Color? borderColor, Color? dividerColor, Decoration? decoration, double? gap, double? headerHeight, Duration? transitionDuration, Curve? transitionCurve, EdgeInsetsGeometry? childrenPadding, EdgeInsetsGeometry? headerPadding, FocusNode? focusNode, List<
BoxShadow> ? shadows, MoonAccordionSize? accordionSize, String? semanticLabel, T? identityValue, T? groupIdentityValue, ValueChanged<T?> ? onExpansionChanged, Widget? leading, required Widget label, Widget? trailing, List<Widget> children = const <Widget>[]}) -
Creates a Moon Design accordion.
const
Properties
- accordionSize → MoonAccordionSize?
-
The size of the accordion.
final
- autofocus → bool
-
True if this widget will be selected as the initial focus when no other
node in its scope is currently focused.
final
- backgroundColor → Color?
-
The background color of the collapsed accordion.
final
- borderColor → Color?
-
The border color of the accordion.
final
- borderRadius → BorderRadiusGeometry?
-
The border radius of the accordion.
final
-
children
→ List<
Widget> -
The list of widgets to display as the content of the accordion when the accordion expands.
final
- childrenPadding → EdgeInsetsGeometry?
-
The padding of the accordion children.
final
- clipBehavior → Clip?
-
The content will be clipped (or not) according to this option.
final
- decoration → Decoration?
-
The custom decoration of the accordion.
final
- dividerColor → Color?
-
The color of the line dividing the accordion header from the body.
final
- expandedAlignment → AlignmentGeometry?
-
The alignment of children, which are arranged in a column when the accordion is expanded.
final
- expandedBackgroundColor → Color?
-
The background color of the expanded accordion.
final
- expandedCrossAxisAlignment → CrossAxisAlignment?
-
The alignment of each child within children when the accordion is expanded.
final
- expandedIconColor → Color?
-
The icon color of the expanded accordion header.
final
- expandedTextColor → Color?
-
The text color of the expanded accordion header.
final
- focusNode → FocusNode?
-
An optional focus node to use as the focus node for this widget.
final
- gap → double?
-
The gap between the leading, label and trailing widgets of the accordion header.
final
- groupIdentityValue → T?
-
The currently selected identity value for a group of accordions.
final
- hasContentOutside → bool
-
Whether to display the accordion content outside of its header.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- headerHeight → double?
-
The height of the accordion header.
final
- headerPadding → EdgeInsetsGeometry?
-
The padding of the accordion header.
final
- iconColor → Color?
-
The icon color of the collapsed accordion header.
final
- identityValue → T?
-
The identity value represented by this accordion.
final
- initiallyExpanded → bool
-
Whether the accordion is initially expanded (true) or collapsed (false, the default).
final
- isDisabled → bool
-
Whether the accordion is disabled.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- label → Widget
-
The primary content of the accordion header.
final
- leading → Widget?
-
The widget to display before the label widget of the accordion.
final
- maintainState → bool
-
Whether to preserve the state of the children when the accordion expands and collapses.
final
-
onExpansionChanged
→ ValueChanged<
T?> ? -
The callback that is called when the accordion expands or collapses.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- semanticLabel → String?
-
The semantic label for the accordion.
final
-
shadows
→ List<
BoxShadow> ? -
The list of shadows applied to the accordion.
final
- showBorder → bool
-
Whether to show a border around the accordion.
final
- showDivider → bool
-
Whether to show a dividing line between the accordion header and the body.
final
- textColor → Color?
-
The text color of the collapsed accordion header.
final
- trailing → Widget?
-
The widget to display after the label widget of the accordion.
final
- transitionCurve → Curve?
-
The curve of the accordion transition animation (expand and collapse).
final
- transitionDuration → Duration?
-
The duration of the accordion transition animation (expand and collapse).
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< MoonAccordion< T> > -
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}) → 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