toTextSpan method
InlineSpan
toTextSpan({
- double size = 16,
- FontWeight weight = FontWeight.w600,
- Color color = Colors.white,
- VoidCallback? onTap,
Implementation
InlineSpan toTextSpan({
double size = 16,
FontWeight weight = FontWeight.w600,
Color color = Colors.white,
VoidCallback? onTap,
}) =>
TextSpan(
text: this,
style: GlobalConfig.fontFamily.fsize(size).fweight(weight).fcolor(color),
recognizer: onTap != null ? (TapGestureRecognizer()..onTap = onTap) : null);