append method

  1. @useResult
Line append(
  1. Span span
)

Returns a new line with span appended to the end.

Implementation

@useResult
Line append(Span span) {
  return Line.fromSpans(
    [...spans, span],
    style: style,
    alignment: alignment,
  );
}