toTextSpan method

InlineSpan toTextSpan({
  1. double size = 16,
  2. FontWeight weight = FontWeight.w600,
  3. Color color = Colors.white,
  4. 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);