RichText constructor

RichText({
  1. required List<RichTextSpan> spans,
  2. TextStyleToken? style,
  3. int? maxLines,
  4. String? name,
  5. 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));