customButtonBuilder property
Allows for a function that builds a custom clickable widget.
isCollapsed is provided to detimine in what state
the widget has to be built.
onPressed is provided to allow for the widget to be clickable and to
trigger the collapsed state.
Implementation
// Refers to the custom button builder in the ExpandableText widget
// ignore: comment_references
/// [isCollapsed] is provided to detimine in what state
/// the widget has to be built.
// Refers to the custom button builder in the ExpandableText widget
// ignore: comment_references
/// [onPressed] is provided to allow for the widget to be clickable and to
/// trigger the collapsed state.
final Widget Function(
// Single bool parameter which seems clear to me
// ignore: avoid_positional_boolean_parameters
bool isCollapsed,
VoidCallback onPressed,
)? customButtonBuilder;