copyWith method

Span copyWith(
  1. {String? content,
  2. Style? style}
)

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);
}