ExpandableText class Null safety



ExpandableText({Color? backGroundColor, double? elevation = 0.0, EdgeInsets? padding = const EdgeInsets.all(20.0), ShapeBorder? shape, Duration? animationDuration = const Duration(milliseconds: 100), Function? onPressed, Text? textWidget, bool? hoverOn = false, DecorationImage? backgroundImage, bool? showArrowIcon = false, bool? initiallyExpanded = false, TextDirection textDirection = TextDirection.ltr, ArrowLocation arrowLocation = ArrowLocation.right, ArrowLocation finalArrowLocation = ArrowLocation.bottom})
• Provides an expandable widget for a long text. [...]


animationDuration Duration?
• Duration for expand animation.
final, inherited
arrowLocation ArrowLocation?
• Place of the arrow widget when this expandable is collapsed.
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
elevation double?
• Elevation of the expandable.
final, inherited
finalArrowLocation ArrowLocation?
• Place of the arrow widget when this expandable is expanded.
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
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 of the expandable.
final, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
shape ShapeBorder?
• Shape of the expandable. [...]
final, inherited
showArrowIcon bool?
• Icon that changes its direction with respect to expand animation.
final, inherited
textDirection TextDirection?
TextDirection of the expandable. [...]
final, inherited
textWidget Text?
Text widget for ExpandableText.
final, inherited


createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree. [...]
createState() → _ExpandableTextWidgetState
Creates the mutable state for this widget at a given location in the tree. [...]
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. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep. [...]
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object. [...]
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants. [...]
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object. [...]
toStringShort() String
A short, textual description of this widget.


operator ==(Object other) bool
The equality operator. [...]
@nonVirtual, inherited