Expandable class Null safety

Inheritance

Constructors

Expandable({Widget? primaryWidget, Widget? secondaryWidget, Function? onPressed, Color? backgroundColor = Colors.white, double? elevation = 0, ShapeBorder? shape, EdgeInsets? padding = const EdgeInsets.all(20.0), Duration? animationDuration = const Duration(milliseconds: 100), Duration? beforeAnimationDuration, DecorationImage? backgroundImage, bool? showArrowIcon = false, bool? hoverOn, Widget? arrowWidget, bool? centralizePrimaryWidget = false, bool? isClickable = true, ArrowLocation? arrowLocation = ArrowLocation.right})
• Provides an expandable widget for general use. [...]
Expandable.extended({Widget? primaryWidget, Widget? secondaryWidget, Widget? additionalWidget, Function? onPressed, Color? backGroundColor = Colors.white, double? elevation = 0, ShapeBorder? shape, EdgeInsets? padding = const EdgeInsets.all(20.0), Duration? animationDuration = const Duration(milliseconds: 100), Duration? beforeAnimationDuration, DecorationImage? backgroundImage, bool? hoverOn, bool? initiallyExpanded, bool? centralizePrimaryWidget = false, bool? centralizeAdditionalWidget = false, Widget? arrowWidget, bool? isClickable = true, ArrowLocation? arrowLocation = ArrowLocation.right})
• Almost similar to Expandable. [...]

Properties

additionalWidget Widget?
• Used for ExpandableWidget.extended. [...]
final, inherited
animationDuration Duration?
• Duration for expand & rotate animations.
final, inherited
arrowLocation ArrowLocation?
• Place of the arrow widget.
final, inherited
arrowWidget Widget?
• Custom arrow widget.
final, inherited
backgroundColor Color?
• Background color of the expandable.
final, inherited
backgroundImage DecorationImage?
• Background image of the expandable.
final, inherited
beforeAnimationDuration Duration?
• Duration between onPressed & expand animation.
final, inherited
centralizeAdditionalWidget bool?
• Provides better alignment for additionalWidget.
final, inherited
centralizePrimaryWidget bool?
• Provides better alignment for primaryWidget.
final, inherited
elevation double?
• Elevation of the expandable widget.
final, inherited
hashCode int
The hash code for this object. [...]
@nonVirtual, read-only, inherited
hoverOn bool?
• Whether expand animation will be triggered when hovered over this widget or not . [...]
final, inherited
initiallyExpanded bool?
• Whether this expandable widget will be expanded or collapsed at first.
final, inherited
isClickable bool?
• Decide whether this widget will be clickable everywhere or clickable only at arrowWidget.
final, inherited
key Key?
Controls how one widget replaces another widget in the tree. [...]
final, inherited
onPressed Function?
• Function that is placed top of the widget tree. [...]
final, inherited
padding EdgeInsets?
• Padding that affects inside of the widget.
final, inherited
primaryWidget Widget?
• The widget that is placed at the non-collapsing part of the expandable.
final, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
secondaryWidget Widget?
• The widget that sizeTransition affects.
final, inherited
shape ShapeBorder?
• Shape of the component. [...]
final, inherited
showArrowIcon bool?
• Icon that changes its direction with respect to expand animation.
final, inherited

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree. [...]
inherited
createState() → _ExpandableWidgetState
Creates the mutable state for this widget at a given location in the tree. [...]
inherited
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children. [...]
@protected, inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node. [...]
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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. [...]
@nonVirtual, inherited