addSeparator method
Adds a visual separator between content sections.
Separators help organize message content by creating visual breaks. They can be shown or hidden and support different spacing sizes.
Example:
builder
..addText('First section')
..addSeparator(spacing: SeparatorSize.medium)
..addText('Second section')
..addSeparator(show: false, spacing: SeparatorSize.large)
..addText('Third section');
Parameters:
show: Whether to display the separator line (default: true)spacing: The amount of vertical space (default: SeparatorSize.small)
Implementation
void addSeparator({
bool show = true,
SeparatorSize spacing = SeparatorSize.small,
}) {
_components.add(Separator(show, spacing));
}