LinkService constructor
const
LinkService({
- Key? key,
- required String text,
- LinkCallback? onOpen,
- LinkOptions options = const LinkOptions(),
- TextStyle? style,
- TextStyle? linkStyle,
- TextAlign textAlign = TextAlign.start,
- TextDirection? textDirection,
- int? maxLines,
- TextOverflow? overflow = TextOverflow.clip,
- double textScaleFactor = 1.0,
- bool softWrap = true,
- StrutStyle? strutStyle,
- Locale? locale,
- TextWidthBasis textWidthBasis = TextWidthBasis.parent,
- TextHeightBehavior? textHeightBehavior,
- 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,
});