geti method

TextSpan geti(
  1. String text, {
  2. double? sizeFont,
  3. List<TextSpan>? childern,
  4. FontWeight? fontweight,
  5. Color? colorText,
  6. dynamic onTap2()?,
})

Implementation

TextSpan geti(String text,{double? sizeFont,List<TextSpan>? childern,FontWeight? fontweight,Color? colorText,Function()? onTap2}){
  return TextSpan(
      text: text,
      recognizer: TapGestureRecognizer()..onTap = onTap2 != null ? onTap2 : (){},
      style: TextStyle(
          fontFamily: Fonts.poppins,
          fontSize: sizeFont != null ? sizeFont : 12,
          color: colorText != null ? colorText : Colors.black,
          fontWeight: fontweight != null ? fontweight : FontWeight.normal
      ),
      children: childern != null ? childern : null
  );
}