LinkService constructor

const LinkService({
  1. Key? key,
  2. required String text,
  3. LinkCallback? onOpen,
  4. LinkOptions options = const LinkOptions(),
  5. TextStyle? style,
  6. TextStyle? linkStyle,
  7. TextAlign textAlign = TextAlign.start,
  8. TextDirection? textDirection,
  9. int? maxLines,
  10. TextOverflow? overflow = TextOverflow.clip,
  11. double textScaleFactor = 1.0,
  12. bool softWrap = true,
  13. StrutStyle? strutStyle,
  14. Locale? locale,
  15. TextWidthBasis textWidthBasis = TextWidthBasis.parent,
  16. TextHeightBehavior? textHeightBehavior,
  17. bool useMouseRegion = true,
})

Implementation

const LinkService({
  super.key,
  required this.text,
  this.onOpen,
  this.options = const LinkOptions(),
  // TextSpan
  this.style,
  this.linkStyle,
  // RichText
  this.textAlign = TextAlign.start,
  this.textDirection,
  this.maxLines,
  this.overflow = TextOverflow.clip,
  this.textScaleFactor = 1.0,
  this.softWrap = true,
  this.strutStyle,
  this.locale,
  this.textWidthBasis = TextWidthBasis.parent,
  this.textHeightBehavior,
  this.useMouseRegion = true,
});