InteractiveTextExpansion class

Configures optional collapsed and expanded rendering for InteractiveText.

Annotations

Constructors

InteractiveTextExpansion({required String expandText, String? collapseText, String ellipsis = '\u2026', int collapsedLines = 3, bool initiallyExpanded = false, bool resetOnTextChange = true, InteractiveTextExpansionChanged? onChanged})
Creates expansion behavior for text that exceeds collapsedLines.
const

Properties

collapsedLines → int
Maximum line count while collapsed.
final
collapseText → String?
Optional label appended to expanded text to collapse it again.
final
ellipsis → String
Marker placed between truncated content and expandText.
final
expandText → String
Label appended to truncated text.
final
hashCode → int
The hash code for this object.
no setterinherited
initiallyExpanded → bool
Initial state when the widget is first mounted.
final
onChanged → InteractiveTextExpansionChanged?
Callback invoked after the expansion state changes.
final
resetOnTextChange → bool
Whether a new source value restores initiallyExpanded.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited