textSpan method

TextSpan textSpan({
  1. TextStyle? style,
  2. Function onTap()?,
})

从字符串生成富文件组件 >>>

Implementation

TextSpan textSpan({
  TextStyle? style,
  Function onTap()?,
}) {
  TapGestureRecognizer rec = TapGestureRecognizer();
  rec.onTap = onTap;
  return TextSpan(text: this, style: style, recognizer: rec);
}