ZwapTextSpan.fromZwapTypography constructor

ZwapTextSpan.fromZwapTypography({
  1. required Pattern text,
  2. ZwapTextType? textType,
  3. Color? textColor,
  4. Uri? linkToUri,
  5. List<ZwapTextSpan> children = const [],
  6. TapGestureRecognizer? gestureRecognizer,
  7. MouseCursor? cursor,
  8. 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);