RichText constructor
RichText({
- required List<
RichTextSpan> spans, - TextStyleToken? style,
- int? maxLines,
- String? name,
- Object? visible,
Implementation
RichText({
required List<RichTextSpan> spans,
this.style,
this.maxLines,
String? name,
Object? visible,
}) : spans = List.unmodifiable(spans),
super(name: name, visible: _normalizeVisibility(visible));