RichTextPositioner constructor

const RichTextPositioner({
  1. Key? key,
  2. required InlineSpan text,
  3. TextAlign textAlign = TextAlign.start,
  4. TextDirection? textDirection,
  5. bool softWrap = true,
  6. TextOverflow overflow = TextOverflow.clip,
  7. double textScaleFactor = 1.0,
  8. int? maxLines,
  9. Locale? locale,
  10. StrutStyle? strutStyle,
  11. TextWidthBasis textWidthBasis = TextWidthBasis.parent,
  12. TextHeightBehavior? textHeightBehavior,
})

wrapper for RichText that can scroll to a specified TextSpan inside it.

Implementation

const RichTextPositioner({
  Key? key,
  required this.text,
  this.textAlign = TextAlign.start,
  this.textDirection,
  this.softWrap = true,
  this.overflow = TextOverflow.clip,
  this.textScaleFactor = 1.0,
  this.maxLines,
  this.locale,
  this.strutStyle,
  this.textWidthBasis = TextWidthBasis.parent,
  this.textHeightBehavior,
}) : super(key: key);