ZwapTextSpan.fromZwapTypography constructor
ZwapTextSpan.fromZwapTypography({
- required Pattern text,
- ZwapTextType? textType,
- Color? textColor,
- Uri? linkToUri,
- List<
ZwapTextSpan> children = const [], - TapGestureRecognizer? gestureRecognizer,
- MouseCursor? cursor,
- ZwapLinkTarget linkTarget = ZwapLinkTarget.defaultTarget,
Implementation
ZwapTextSpan.fromZwapTypography({
required this.text,
ZwapTextType? textType,
Color? textColor,
this.linkToUri,
this.children = const [],
this.gestureRecognizer,
this.cursor,
this.linkTarget = ZwapLinkTarget.defaultTarget,
}) : this.textStyle = textType == null
? textColor != null
? TextStyle(color: textColor)
: null
: getTextStyle(textType).copyWith(color: textColor);