AttributeSegment.from constructor

AttributeSegment.from(
  1. Characters text,
  2. Iterable<TextAttribute> attributes
)

Create an attribute segment.

Implementation

AttributeSegment.from(this.text, Iterable<TextAttribute> attributes)
    : attributes = attributes.toBuiltSet();