ExpandableText class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- ExpandableText
Constructors
-
ExpandableText({Key? key, required Text textWidget, Function? onPressed, EdgeInsets padding = const EdgeInsets.all(4.0), Color backgroundColor = Colors.white, Duration animationDuration = const Duration(milliseconds: 500), DecorationImage? backgroundImage, bool initiallyExpanded = false, void onHover(bool)?, Widget? arrowWidget = const Icon(Icons.keyboard_arrow_down_rounded, color: Colors.black, size: 25.0), ArrowLocation? arrowLocation = ArrowLocation.right, ArrowLocation? finalArrowLocation = ArrowLocation.right, List<
String> helperTextList = const ['...Show More', '...Show Less'], TextStyle? helperTextStyle, BorderRadius? borderRadius, Helper helper = Helper.arrow, List<BoxShadow> ? boxShadow}) -
• Expandable text widget for general use.
const
Properties
- animationDuration → Duration
-
• Duration for expand animation.
final
- arrowLocation → ArrowLocation?
-
• Place of the arrow widget when this expandable is collapsed.
final
- arrowWidget → Widget?
-
• Custom arrow widget.
final
- backgroundColor → Color
-
• Background color of the expandable.
final
- backgroundImage → DecorationImage?
-
• Background image of the expandable.
final
- borderRadius → BorderRadius?
-
• BorderRadius of ExpandableText.
final
-
boxShadow
→ List<
BoxShadow> ? -
final
- finalArrowLocation → ArrowLocation?
-
• Place of the arrow widget when this expandable is expanded.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- helper → Helper
-
• Helps to choose a Helper for ExpandableText
final
-
helperTextList
→ List<
String> -
• Helper texts for Helper.text.
final
- helperTextStyle → TextStyle?
-
• Style for helper texts. Same style applies both of the texts.
final
- initiallyExpanded → bool
-
• Whether this expandable widget will be expanded or collapsed at first.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- onHover → (void Function(bool)?)
-
final
- onPressed → Function?
-
• Animation starts BEFORE and ends AFTER this function.
final
- padding → EdgeInsets
-
• Padding of the expandable.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- textWidget → Text
-
Text widget for ExpandableText.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → _ExpandableTextState -
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