copyWith method
Returns a copy of this span with the given content
and style
.
If no arguments are provided, the current span is returned.
Implementation
Span copyWith({String? content, Style? style}) {
return Span(content ?? this.content, style ?? this.style);
}